feat : update
This commit is contained in:
+2
-26
@@ -1,7 +1,6 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Anuphan, Inter } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { config } from "@/lib/config";
|
||||
|
||||
const inter = Inter({
|
||||
@@ -65,12 +64,6 @@ export const metadata: Metadata = {
|
||||
},
|
||||
};
|
||||
|
||||
import { TooltipProvider } from "@/components/ui/tooltip";
|
||||
import { Toaster } from "sonner";
|
||||
import { ThemeProvider } from "@/components/theme-provider";
|
||||
import { PageProgress } from "@/components/page-progress";
|
||||
import { VersionCheck } from "@/components/version-check";
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
@@ -79,28 +72,11 @@ export default function RootLayout({
|
||||
return (
|
||||
<html
|
||||
lang="th"
|
||||
className={cn(
|
||||
"h-full",
|
||||
"antialiased",
|
||||
inter.variable,
|
||||
anuphan.variable,
|
||||
)}
|
||||
className={`dark h-full antialiased ${inter.variable} ${anuphan.variable}`}
|
||||
suppressHydrationWarning
|
||||
>
|
||||
<body className="font-app" suppressHydrationWarning>
|
||||
<PageProgress />
|
||||
<ThemeProvider
|
||||
attribute="class"
|
||||
defaultTheme="dark"
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
>
|
||||
<TooltipProvider>
|
||||
<Toaster richColors closeButton position="bottom-right" theme="dark" />
|
||||
<VersionCheck />
|
||||
{children}
|
||||
</TooltipProvider>
|
||||
</ThemeProvider>
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user