From 23a7a7eda34156520c14716d899737ab85562758 Mon Sep 17 00:00:00 2001 From: JSC Date: Sun, 29 Jun 2025 16:47:34 +0200 Subject: [PATCH] feat: restructure sidebar component and update imports in AppLayout --- src/components/AppLayout.tsx | 17 ++++++++++------- src/components/{ => sidebar}/AppSidebar.tsx | 0 2 files changed, 10 insertions(+), 7 deletions(-) rename src/components/{ => sidebar}/AppSidebar.tsx (100%) diff --git a/src/components/AppLayout.tsx b/src/components/AppLayout.tsx index 0772cfd..5f84bc8 100644 --- a/src/components/AppLayout.tsx +++ b/src/components/AppLayout.tsx @@ -1,7 +1,7 @@ -import { type ReactNode } from 'react' -import { AppSidebar } from '@/components/AppSidebar' import { PageHeader } from '@/components/PageHeader' +import { AppSidebar } from '@/components/sidebar/AppSidebar' import { SidebarProvider } from '@/contexts/SidebarContext' +import { type ReactNode } from 'react' interface AppLayoutProps { children: ReactNode @@ -10,7 +10,12 @@ interface AppLayoutProps { headerActions?: ReactNode } -export function AppLayout({ children, title, description, headerActions }: AppLayoutProps) { +export function AppLayout({ + children, + title, + description, + headerActions, +}: AppLayoutProps) { return (
@@ -20,12 +25,10 @@ export function AppLayout({ children, title, description, headerActions }: AppLa {headerActions}
-
- {children} -
+
{children}
) -} \ No newline at end of file +} diff --git a/src/components/AppSidebar.tsx b/src/components/sidebar/AppSidebar.tsx similarity index 100% rename from src/components/AppSidebar.tsx rename to src/components/sidebar/AppSidebar.tsx