diff options
author | crupest <crupest@outlook.com> | 2021-06-03 15:03:33 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-03 15:03:33 +0800 |
commit | e309a0e049da1275797a8a55522a310621bd69e3 (patch) | |
tree | fd05ea290df953b460c1465f9668964662d068d0 /FrontEnd/src/app/App.tsx | |
parent | 456341faf13470fc1eed5601e7beeb45e0613f7d (diff) | |
download | timeline-e309a0e049da1275797a8a55522a310621bd69e3.tar.gz timeline-e309a0e049da1275797a8a55522a310621bd69e3.tar.bz2 timeline-e309a0e049da1275797a8a55522a310621bd69e3.zip |
build: Remove a unused package.
Diffstat (limited to 'FrontEnd/src/app/App.tsx')
-rw-r--r-- | FrontEnd/src/app/App.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/FrontEnd/src/app/App.tsx b/FrontEnd/src/app/App.tsx index a28b99ae..a4363ff5 100644 --- a/FrontEnd/src/app/App.tsx +++ b/FrontEnd/src/app/App.tsx @@ -13,7 +13,7 @@ import TimelinePage from "./views/timeline"; import Search from "./views/search"; import AlertHost from "./views/common/alert/AlertHost"; -import { userService, useRawUser } from "./services/user"; +import { useRawUser } from "./services/user"; const NoMatch: React.FC = () => { return <div>Ah-oh, 404!</div>; @@ -26,10 +26,6 @@ const LazyAdmin = React.lazy( function App(): ReactElement | null { const user = useRawUser(); - React.useEffect(() => { - void userService.checkLoginState(); - }, []); - if (user === undefined) { return <LoadingPage />; } else { |