This commit is contained in:
cdricms
2025-01-15 11:54:39 +01:00
parent d18245736f
commit 683a8c3133
13 changed files with 165 additions and 69 deletions

View File

@@ -1,3 +1,4 @@
"use server";
import { AppSidebar } from "@/components/app-sidebar";
import {
Breadcrumb,
@@ -14,7 +15,7 @@ import {
SidebarTrigger,
} from "@/components/ui/sidebar";
export default function Page() {
export default async function Page() {
return (
<SidebarProvider>
<AppSidebar />

View File

@@ -1,35 +1,7 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "@/app/globals.css";
import Navbar from "@/components/nav-bar";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
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="fr">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
</body>
</html>
);
return <>{children}</>;
}