Fixed theme and settings

This commit is contained in:
2026-01-07 16:26:19 +01:00
parent dd65dd0c24
commit 3476b29713
4 changed files with 9 additions and 7 deletions
+4 -2
View File
@@ -1,8 +1,9 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { getClientSettings } from "@/lib/clientSettings";
import { parseClientSettings } from "@/lib/clientSettings";
import { Toaster } from "@/components/ui/sonner";
import { cookies } from "next/headers";
const geistSans = Geist({
variable: "--font-geist-sans",
@@ -33,7 +34,8 @@ export default async function RootLayout({
}: Readonly<{
children: React.ReactNode;
}>) {
const settings = getClientSettings();
const c = await cookies();
const settings = parseClientSettings(c.get("settings")?.value);
return (
<html lang="en">