260220:1600 20260220 TASK-BEFE-001 Refactor by ADR-014 #3
All checks were successful
Build and Deploy / deploy (push) Successful in 1m35s
All checks were successful
Build and Deploy / deploy (push) Successful in 1m35s
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { AdminSidebar } from '@/components/admin/sidebar';
|
||||
import { AdminSidebar, AdminMobileSidebar } from '@/components/admin/sidebar';
|
||||
|
||||
import { auth } from '@/lib/auth';
|
||||
|
||||
@@ -16,9 +16,17 @@ export default async function AdminLayout({ children }: { children: React.ReactN
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex h-screen w-full bg-background">
|
||||
<div className="flex h-screen w-full bg-background overflow-hidden">
|
||||
<AdminSidebar />
|
||||
<div className="flex-1 overflow-auto bg-muted/10 p-4">{children}</div>
|
||||
<div className="flex-1 flex flex-col min-h-screen overflow-hidden">
|
||||
{/* Mobile Header for Admin Panel */}
|
||||
<div className="h-16 border-b flex items-center px-4 md:hidden shrink-0 bg-white">
|
||||
<AdminMobileSidebar />
|
||||
<h2 className="text-lg font-semibold ml-4">LCBP3-DMS Admin</h2>
|
||||
</div>
|
||||
{/* Main Content */}
|
||||
<div className="flex-1 overflow-auto bg-muted/10 p-4">{children}</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user