feat: Added interface options

This commit is contained in:
Simeon Radivoev 2026-03-04 13:18:18 +02:00
parent 4739b89933
commit 2f32cbc730
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
25 changed files with 327 additions and 74 deletions

View file

@ -4,7 +4,7 @@ import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { RouterContext } from "..";
import Notifications from "../components/Notifications";
import { Toaster } from "react-hot-toast";
import { mobileCheck } from "../scripts/utils";
import { mobileCheck, useLocalSetting } from "../scripts/utils";
export const Route = createRootRouteWithContext<RouterContext>()({
component: RootComponent,
@ -13,9 +13,10 @@ export const Route = createRootRouteWithContext<RouterContext>()({
function RootComponent ()
{
const isMobile = mobileCheck();
const theme = useLocalSetting('theme');
return (
<div className="w-screen h-screen overflow-hidden">
<div data-theme={theme === 'auto' ? undefined : theme} className="w-screen h-screen overflow-hidden">
<Outlet />
<Notifications />
<Toaster containerStyle={{ viewTimelineName: 'toasters' }} />