feat-update

This commit is contained in:
TuanVT
2026-08-19 10:07:45 +07:00
parent 719851effa
commit a5ef1901da
8 changed files with 510 additions and 432 deletions
@@ -13,44 +13,44 @@ const BaseLayout = ({ children, title, breadcrumb }: PropsBaseLayout) => {
const [openMenuMobile, setOpenMenuMobile] = React.useState(false);
return (
<RequireAuth>
<ContextBaseLayout
value={{
showFull,
setShowFull,
openMenuMobile,
setOpenMenuMobile,
}}
>
<div className="min-h-screen w-full overflow-x-hidden bg-[#f8f8f8]">
{/* HEADER */}
<header
className={clsx(
"top-0 right-0 z-[11] h-[68px]",
"w-full",
"border-b border-[#f4f7fa]",
"bg-white",
"transition-all duration-300",
)}
>
<Header title={title} breadcrumb={breadcrumb} />
</header>
// <RequireAuth>
<ContextBaseLayout
value={{
showFull,
setShowFull,
openMenuMobile,
setOpenMenuMobile,
}}
>
<div className="min-h-screen w-full overflow-x-hidden bg-[#f8f8f8]">
{/* HEADER */}
<header
className={clsx(
"top-0 right-0 z-[11] h-[68px]",
"w-full",
"border-b border-[#f4f7fa]",
"bg-white",
"transition-all duration-300",
)}
>
<Header title={title} breadcrumb={breadcrumb} />
</header>
{/* MAIN CONTENT */}
<main
className={clsx(
"w-full",
"min-w-0",
"overflow-x-hidden",
"transition-all duration-300 ease-in-out",
"ml-0",
)}
>
{children}
</main>
</div>
</ContextBaseLayout>
</RequireAuth>
{/* MAIN CONTENT */}
<main
className={clsx(
"w-full",
"min-w-0",
"overflow-x-hidden",
"transition-all duration-300 ease-in-out",
"ml-0",
)}
>
{children}
</main>
</div>
</ContextBaseLayout>
// </RequireAuth>
);
};