Skip to content

Commit 1bc8533

Browse files
committed
Refactor Layout component structure for improved readability and maintainability
1 parent c2b9655 commit 1bc8533

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

examples/crm-app/src/App.tsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,16 @@ registerPlaceholders();
2323
const Layout = () => {
2424
return (
2525
<SidebarProvider>
26-
<div className="flex min-h-screen w-full bg-gray-50 dark:bg-gray-900">
27-
<SidebarNav />
28-
<SidebarInset>
29-
<div className="p-4 border-b bg-background flex items-center md:hidden">
30-
<SidebarTrigger />
31-
<span className="ml-2 font-semibold">CRM Demo</span>
32-
</div>
33-
<main className="flex-1 overflow-y-auto w-full p-4 md:p-8">
34-
<Outlet />
35-
</main>
36-
</SidebarInset>
37-
</div>
26+
<SidebarNav />
27+
<SidebarInset>
28+
<div className="p-4 border-b bg-background flex items-center md:hidden">
29+
<SidebarTrigger />
30+
<span className="ml-2 font-semibold">CRM Demo</span>
31+
</div>
32+
<main className="flex-1 overflow-y-auto w-full p-4 md:p-8 bg-gray-50 dark:bg-gray-900">
33+
<Outlet />
34+
</main>
35+
</SidebarInset>
3836
</SidebarProvider>
3937
);
4038
};

0 commit comments

Comments
 (0)