Skip to content

Commit

Permalink
Remove app root
Browse files Browse the repository at this point in the history
  • Loading branch information
zobweyt committed Sep 7, 2024
1 parent 787a23f commit 73217af
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 27 deletions.
25 changes: 0 additions & 25 deletions frontend/src/app-root.tsx

This file was deleted.

25 changes: 23 additions & 2 deletions frontend/src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
import { MetaProvider } from "@solidjs/meta";
import { Router } from "@solidjs/router";
import { FileRoutes } from "@solidjs/start/router";
import { AppRoot } from "./app-root";
import { Suspense } from "solid-js";
import { Toaster } from "solid-sonner";
import { SessionExpirationMonitor } from "~/components";
import { I18nProvider } from "~/lib/i18n";
import { PreferencesProvider } from "~/lib/preferences";
import { ThemeProvider } from "~/lib/theme";
import "./app.css";

export default function App() {
return (
<Router root={AppRoot}>
<Router
root={(props) => (
<MetaProvider>
<PreferencesProvider>
<I18nProvider>
<ThemeProvider>
<Suspense>{props.children}</Suspense>

<Toaster />
<SessionExpirationMonitor />
</ThemeProvider>
</I18nProvider>
</PreferencesProvider>
</MetaProvider>
)}
>
<FileRoutes />
</Router>
);
Expand Down

0 comments on commit 73217af

Please sign in to comment.