feat:update all page
This commit is contained in:
@@ -11,6 +11,16 @@ export const ContextBaseLayout = React.createContext<TContextBaseLayout>({});
|
||||
const BaseLayout = ({ children, title, breadcrumb }: PropsBaseLayout) => {
|
||||
const [showFull, setShowFull] = React.useState(false);
|
||||
const [openMenuMobile, setOpenMenuMobile] = React.useState(false);
|
||||
// Khi mount trên client, mở sidebar mặc định nếu là màn hình desktop (xl)
|
||||
// React.useEffect(() => {
|
||||
// try {
|
||||
// if (window?.innerWidth >= 1280) {
|
||||
// setShowFull(true);
|
||||
// }
|
||||
// } catch (e) {
|
||||
// // ignore
|
||||
// }
|
||||
// }, []);
|
||||
return (
|
||||
<RequireAuth>
|
||||
<ContextBaseLayout
|
||||
|
||||
Reference in New Issue
Block a user