From 68819ba64c9fc20cbe99df16a7089d5862afb896 Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Wed, 20 Jan 2021 21:06:13 +0800 Subject: [PATCH] client: rename TorrentClientOverview to Overview to match route name --- client/src/javascript/app.tsx | 4 ++-- .../routes/{TorrentClientOverview.tsx => Overview.tsx} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename client/src/javascript/routes/{TorrentClientOverview.tsx => Overview.tsx} (93%) 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;