mirror of
https://github.com/skidoodle/budgetable.git
synced 2026-04-27 23:37:36 +02:00
Refactor: Break down single table component into multiple modular components
This commit is contained in:
+18
-18
@@ -1,33 +1,33 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Albert_Sans } from "next/font/google";
|
||||
import { ThemeProvider } from "@/components/theme-provider";
|
||||
import { Toaster } from "@/components/ui/sonner"
|
||||
import { Toaster } from "@/components/ui/sonner";
|
||||
import "./globals.css";
|
||||
|
||||
const albertSans = Albert_Sans({
|
||||
variable: "--font-albert-sans",
|
||||
subsets: ["latin"],
|
||||
variable: "--font-albert-sans",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Budgetable",
|
||||
title: "Budgetable",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body
|
||||
className={`${albertSans.variable} ${albertSans.variable} antialiased`}
|
||||
>
|
||||
<ThemeProvider attribute="class" defaultTheme='dark' forcedTheme='dark'>
|
||||
{children}
|
||||
<Toaster />
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body
|
||||
className={`${albertSans.variable} ${albertSans.variable} antialiased`}
|
||||
>
|
||||
<ThemeProvider attribute="class" defaultTheme="dark" forcedTheme="dark">
|
||||
{children}
|
||||
<Toaster />
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user