From 538d6830a0022b49b99695095d85e567b0c86e71 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sun, 30 Jul 2023 23:47:53 +0800
Subject: ...

---
 FrontEnd/src/App.tsx | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'FrontEnd/src/App.tsx')

diff --git a/FrontEnd/src/App.tsx b/FrontEnd/src/App.tsx
index f638f5e8..ca3e4d38 100644
--- a/FrontEnd/src/App.tsx
+++ b/FrontEnd/src/App.tsx
@@ -1,27 +1,26 @@
-import * as React from "react";
+import { Suspense } from "react";
 import { BrowserRouter, Route, Routes } from "react-router-dom";
 
 import AppBar from "./views/common/AppBar";
 import NotFoundPage from "./pages/404";
-import LoadingPage from "./views/common/LoadingPage";
+import HomePage from "./pages/home";
 import AboutPage from "./pages/about";
 import SettingPage from "./pages/setting";
-import Center from "./views/center";
 import LoginPage from "./pages/login";
 import RegisterPage from "./pages/register";
-import TimelinePage from "./views/timeline";
+import TimelinePage from "./pages/timeline";
+import LoadingPage from "./pages/loading";
 import Search from "./views/search";
 import Admin from "./views/admin";
 import AlertHost from "./views/common/alert/AlertHost";
 
 export default function App() {
   return (
-    <React.Suspense fallback={<LoadingPage />}>
+    <Suspense fallback={<LoadingPage />}>
       <BrowserRouter>
         <AppBar />
         <div style={{ height: 56 }} />
         <Routes>
-          <Route path="center" element={<Center />} />
           <Route path="login" element={<LoginPage />} />
           <Route path="register" element={<RegisterPage />} />
           <Route path="settings" element={<SettingPage />} />
@@ -30,10 +29,11 @@ export default function App() {
           <Route path="admin/*" element={<Admin />} />
           <Route path=":owner" element={<TimelinePage />} />
           <Route path=":owner/:timeline" element={<TimelinePage />} />
+          <Route path="" element={<HomePage />} />
           <Route path="*" element={<NotFoundPage />} />
         </Routes>
         <AlertHost />
       </BrowserRouter>
-    </React.Suspense>
+    </Suspense>
   );
 }
-- 
cgit v1.2.3

