client: rename TorrentClientOverview to Overview to match route name

This commit is contained in:
Jesse Chan
2021-01-20 21:06:13 +08:00
parent fdb6bdf42b
commit 68819ba64c
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ import history from './util/history';
import '../sass/style.scss';
const Login = lazy(() => import(/* webpackPrefetch: true */ './routes/Login'));
const Overview = lazy(() => import(/* webpackPreload: true */ './routes/Overview'));
const Register = lazy(() => import(/* webpackPrefetch: true */ './routes/Register'));
const TorrentClientOverview = lazy(() => import(/* webpackPreload: true */ './routes/TorrentClientOverview'));
const FloodApp: FC = observer(() => {
useEffect(() => {
@@ -82,8 +82,8 @@ const FloodApp: FC = observer(() => {
<AppWrapper className={ConfigStore.preferDark ? 'dark' : undefined}>
<Switch>
<Route path="/login" component={Login} />
<Route path="/overview" component={Overview} />
<Route path="/register" component={Register} />
<Route path="/overview" component={TorrentClientOverview} />
</Switch>
</AppWrapper>
</QueryParamProvider>
@@ -13,7 +13,7 @@ import 'overlayscrollbars/css/OverlayScrollbars.css';
const Alerts = lazy(() => import('@client/components/alerts/Alerts'));
const Modals = lazy(() => import('@client/components/modals/Modals'));
const TorrentClientOverview: FC = () => {
const Overview: FC = () => {
useEffect(() => {
FloodActions.startActivityStream();
}, []);
@@ -33,4 +33,4 @@ const TorrentClientOverview: FC = () => {
);
};
export default TorrentClientOverview;
export default Overview;