diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-07 12:43:18 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-07 12:43:18 +0100 |
| commit | 4420def7411a053e930b44117e2bf63625d824dc (patch) | |
| tree | bfe02088318210fe2c9a2928d6afedc39cb88e45 /src/frontend/app/root.tsx | |
| parent | 86b922c1853110981d8df985a183cb43690c575d (diff) | |
Make "stops" page be the home (renaming only)
Diffstat (limited to 'src/frontend/app/root.tsx')
| -rw-r--r-- | src/frontend/app/root.tsx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/frontend/app/root.tsx b/src/frontend/app/root.tsx index 6bb3da6..5891097 100644 --- a/src/frontend/app/root.tsx +++ b/src/frontend/app/root.tsx @@ -16,7 +16,7 @@ import "./root.css"; import "maplibre-theme/icons.default.css"; import "maplibre-theme/modern.css"; import { Protocol } from "pmtiles"; -import maplibregl, { type LngLatLike } from "maplibre-gl"; +import maplibregl from "maplibre-gl"; import { AppProvider } from "./AppContext"; const pmtiles = new Protocol(); maplibregl.addProtocol("pmtiles", pmtiles.tile); @@ -76,18 +76,6 @@ export function Layout({ children }: { children: React.ReactNode }) { <title>Busurbano</title> <Meta /> - {/* Set theme early to avoid flash of wrong theme (especially skeletons) */} - <script - dangerouslySetInnerHTML={{ - __html: `(() => { try { - var saved = localStorage.getItem('theme'); - var system = (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) ? 'dark' : 'light'; - var resolved = (saved === 'light' || saved === 'dark') ? saved : system; - document.documentElement.setAttribute('data-theme', resolved); - document.documentElement.style.colorScheme = resolved; - } catch (e) {} })();`, - }} - /> <Links /> </head> <body> |
