feat(design): add AppShell, MobileShell and the notifications drawer
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@ export const dynamic = 'force-dynamic'
|
||||
|
||||
import { redirect } from 'next/navigation'
|
||||
import { getSession } from '@/lib/auth/get-session'
|
||||
import { Sidebar } from '@/components/layout/sidebar'
|
||||
import { AppShell } from '@/components/layout/app-shell'
|
||||
|
||||
export default async function ProtectedLayout({
|
||||
children,
|
||||
@@ -13,15 +13,8 @@ export default async function ProtectedLayout({
|
||||
if (!session) redirect('/login')
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-ground">
|
||||
<Sidebar
|
||||
role={session.role}
|
||||
userName={session.name}
|
||||
userEmail=""
|
||||
/>
|
||||
<div className="sm:ml-60 pb-16 sm:pb-0">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
<AppShell role={session.role} userName={session.name}>
|
||||
{children}
|
||||
</AppShell>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user