- Added theme support to the dashboard with light, dark, and system options. - Improved canvas ID handling with validation and fetching logic. - Updated layout component to suppress hydration warnings for better rendering. - Refactored dashboard to include user session management and workspace creation functionality.
37 lines
923 B
TypeScript
37 lines
923 B
TypeScript
import type { Metadata } from "next";
|
|
import { Manrope } from "next/font/google";
|
|
import "./globals.css";
|
|
import { cn } from "@/lib/utils";
|
|
import { Providers } from "@/components/providers";
|
|
import { Toaster } from "@/components/ui/sonner";
|
|
import { InitUser } from "@/components/init-user";
|
|
|
|
const manrope = Manrope({ subsets: ["latin"], variable: "--font-sans" });
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Create Next App",
|
|
description: "Generated by create next app",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html
|
|
lang="de"
|
|
suppressHydrationWarning
|
|
className={cn("h-full", "antialiased", "font-sans", manrope.variable)}
|
|
>
|
|
<body className="min-h-full flex flex-col">
|
|
<Providers>
|
|
<InitUser />
|
|
{children}
|
|
<Toaster />
|
|
</Providers>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|