remove unused Suspense

This commit is contained in:
tobi 2024-04-25 18:13:33 +02:00
parent 8872421e76
commit 598c0088a6
1 changed files with 6 additions and 8 deletions

View File

@ -17,7 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
import React, { StrictMode, Suspense, useMemo } from "react"; import React, { StrictMode, useMemo } from "react";
import "./style.css"; import "./style.css";
import { createRoot } from "react-dom/client"; import { createRoot } from "react-dom/client";
@ -55,17 +55,15 @@ export function App({ account }: AppProps) {
<section className="with-sidebar"> <section className="with-sidebar">
<Router base="/settings"> <Router base="/settings">
<ErrorBoundary> <ErrorBoundary>
<Suspense fallback={<Loading />}> <UserRouter />
<UserRouter /> <ModerationRouter />
<ModerationRouter /> <AdminRouter />
<AdminRouter /> {/*
{/*
Redirect to first part of UserRouter if Redirect to first part of UserRouter if
just the bare settings page is open, so just the bare settings page is open, so
user isn't greeted with a blank page. user isn't greeted with a blank page.
*/} */}
<Route><Redirect to="/user/profile" /></Route> <Route><Redirect to="/user/profile" /></Route>
</Suspense>
</ErrorBoundary> </ErrorBoundary>
</Router> </Router>
</section> </section>