feat:update all page

This commit is contained in:
TuanVT
2026-05-26 16:43:42 +07:00
parent bce004352c
commit 56e2733d8f
18 changed files with 480 additions and 262 deletions
@@ -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
@@ -51,7 +51,7 @@ const MenuProfile = ({ onClose }: PropsMenuProfile) => {
return (
<div className="w-[260px] bg-white rounded-xl shadow-md p-2">
{/* PROFILE */}
<Link
{/* <Link
href={PATH.PROFILE}
onClick={onClose}
className={clsx(
@@ -65,10 +65,10 @@ const MenuProfile = ({ onClose }: PropsMenuProfile) => {
<p className="text-xs text-gray-500">Chi tiết tài khoản</p>
</div>
</Link>
<div className="h-px bg-gray-200 my-1" />
<div className="h-px bg-gray-200 my-1" /> */}
{/* CHANGE PASSWORD */}
<Link
{/* <Link
href={`${PATH.PROFILE}?_action=change-password`}
onClick={onClose}
className={clsx(
@@ -84,7 +84,7 @@ const MenuProfile = ({ onClose }: PropsMenuProfile) => {
<p className="text-xs text-gray-500">Thay đổi mật khẩu</p>
</div>
</Link>
<div className="h-px bg-gray-200 my-1" />
<div className="h-px bg-gray-200 my-1" /> */}
{/* LOGOUT */}
<div