diff options
author | Linnea Gräf <nea@nea.moe> | 2025-05-01 21:46:32 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-05-01 21:46:42 +0200 |
commit | 00e37dc840f7dd9b4ec8d2aa7c17bebad08a2696 (patch) | |
tree | acd21a461b53b9e2990c9a313cc74efcee6b0c40 /server/frontend/src/index.tsx | |
parent | 0c60aa3278a9297e143ee4ad998c01b6ef2337b1 (diff) | |
download | LocalTransactionLedger-00e37dc840f7dd9b4ec8d2aa7c17bebad08a2696.tar.gz LocalTransactionLedger-00e37dc840f7dd9b4ec8d2aa7c17bebad08a2696.tar.bz2 LocalTransactionLedger-00e37dc840f7dd9b4ec8d2aa7c17bebad08a2696.zip |
Diffstat (limited to 'server/frontend/src/index.tsx')
-rw-r--r-- | server/frontend/src/index.tsx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/server/frontend/src/index.tsx b/server/frontend/src/index.tsx index 610a78b..3009300 100644 --- a/server/frontend/src/index.tsx +++ b/server/frontend/src/index.tsx @@ -5,7 +5,7 @@ import 'solid-devtools'; import "./index.css"; import type { RouteDefinition } from "@solidjs/router"; import { Router } from "@solidjs/router"; -import { lazy } from "solid-js"; +import { lazy, onMount } from "solid-js"; const root = document.getElementById("root"); @@ -20,4 +20,11 @@ const routes: Array<RouteDefinition> = [ { path: "/analysis/:id", component: lazy(() => import("./Analysis.tsx")) }, ]; -render(() => <Router>{routes}</Router>, root!); +const Root = () => { + + return <div class="bg-gray-800 text-white min-h-[100vh]"> + <Router>{routes}</Router> + </div> +} + +render(() => <Root />, root!); |