diff --git a/client/src/javascript/app.tsx b/client/src/javascript/app.tsx index 6d5e1cb4..ace296d0 100644 --- a/client/src/javascript/app.tsx +++ b/client/src/javascript/app.tsx @@ -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(() => { + - diff --git a/client/src/javascript/routes/TorrentClientOverview.tsx b/client/src/javascript/routes/Overview.tsx similarity index 93% rename from client/src/javascript/routes/TorrentClientOverview.tsx rename to client/src/javascript/routes/Overview.tsx index 83b99da2..bfbf03fd 100644 --- a/client/src/javascript/routes/TorrentClientOverview.tsx +++ b/client/src/javascript/routes/Overview.tsx @@ -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;