[as] feat: 내행정지원 페이지
This commit is contained in:
@@ -5,16 +5,11 @@ import { useMenuStore } from "../lib/use-menu-store";
|
||||
function PageLayout({ children }: { children: React.ReactNode }) {
|
||||
const currentMenuInfo = useMenuStore((state) => state.currentMenuInfo);
|
||||
|
||||
const menuPaths = currentMenuInfo?.menuPath
|
||||
?.split(">")
|
||||
.map((path) => path.trim());
|
||||
const menuPaths = currentMenuInfo?.menuPath?.split(">").map((path) => path.trim());
|
||||
|
||||
return (
|
||||
<div className="bg-container h-auto min-h-full pb-2">
|
||||
<PageTitle
|
||||
title={currentMenuInfo?.menuKornNm ?? ""}
|
||||
menuPaths={menuPaths ?? []}
|
||||
/>
|
||||
<div className="h-auto min-h-full bg-container pb-2">
|
||||
<PageTitle title={currentMenuInfo?.menuKornNm ?? ""} menuPaths={menuPaths ?? []} />
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user