issue # 회원가입 화면 구현 중

This commit is contained in:
민건희
2025-11-05 23:14:32 +09:00
parent 3a6e3eb70b
commit 917bef73b0
13 changed files with 176 additions and 91 deletions

23
src/layouts/Layout.tsx Normal file
View File

@@ -0,0 +1,23 @@
import SideBar from "@/ui/component/SideBar";
import { Outlet } from "react-router-dom";
import { SidebarProvider } from "@/components/ui/sidebar";
import Header from "@/ui/component/Header";
import { useAuthStore } from '@/store/authStore';
export default function Layout() {
const { authData } = useAuthStore();
return (
<SidebarProvider
defaultOpen={false}
id="root"
>
<SideBar />
<div className="flex flex-col w-full h-full">
{ authData?.isLogedIn ? <Header /> : null}
{/* <Header /> */}
<Outlet />
</div>
</SidebarProvider>
);
}