Fixed theme and settings
This commit is contained in:
+4
-2
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user