Skip to content

Commit

Permalink
chore:Update layout sidebar trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Bran18 authored Dec 13, 2024
1 parent b085d16 commit 7127bc0
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
import "@/app/globals.css"
import { SidebarProvider } from "@/components/ui/sidebar"
import { SocialSphereSidebar } from "@/components/social-sphere-sidebar"
import "@/app/globals.css";
import { SidebarProvider, SidebarTrigger } from "@/components/ui/sidebar";
import { SocialSphereSidebar } from "@/components/social-sphere-sidebar";

export const metadata = {
title: 'Social Sphere',
description: 'A social platform',
}
title: "Social Sphere",
description: "A social platform",
};

export default function RootLayout({
children,
}: {
children: React.ReactNode
children: React.ReactNode;
}) {
return (
<html lang="en">
<body>
<SidebarProvider>
<div className="flex min-h-screen">
<SocialSphereSidebar />
<main className="flex-1 p-4 md:p-6 lg:p-8">{children}</main>
<main className="flex-1 p-4 md:p-6 lg:p-8">
<SidebarTrigger />
{children}
</main>
</div>
</SidebarProvider>
</body>
</html>
)
);
}

0 comments on commit 7127bc0

Please sign in to comment.