260322:1648 Correct Coresspondence / Doing RFA / Correct CI
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// File: components/layout/dashboard-shell.tsx
|
||||
"use client";
|
||||
'use client';
|
||||
|
||||
import { useUIStore } from "@/lib/stores/ui-store";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { useUIStore } from '@/lib/stores/ui-store';
|
||||
import { cn } from '@/lib/utils';
|
||||
|
||||
export function DashboardShell({ children }: { children: React.ReactNode }) {
|
||||
const { isSidebarOpen } = useUIStore();
|
||||
@@ -10,12 +10,12 @@ export function DashboardShell({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"flex flex-col min-h-screen transition-all duration-300 ease-in-out",
|
||||
'flex flex-col min-h-screen transition-all duration-300 ease-in-out',
|
||||
// ปรับ Margin ซ้าย ตามสถานะ Sidebar
|
||||
isSidebarOpen ? "md:ml-[240px]" : "md:ml-[70px]"
|
||||
isSidebarOpen ? 'md:ml-[240px]' : 'md:ml-[70px]'
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user