Refactor: Break down single table component into multiple modular components

This commit is contained in:
2024-12-30 13:16:13 +01:00
parent 8c9688017b
commit 95380493cb
33 changed files with 1562 additions and 6642 deletions
+18 -18
View File
@@ -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>
);
}