refactor: menu wrapper에서 useQuery 제거
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
import { usePathname, useRouter } from "next/navigation";
|
||||
import type { MenuItem } from "@common/components/api";
|
||||
import { BaseLayout } from "@common/components/ui";
|
||||
import { MenuWrapper } from "@/entities/menu";
|
||||
import { useMenuStore } from "@/shared/lib";
|
||||
import { PageLayout } from "@/shared/ui/page-layout";
|
||||
|
||||
@@ -23,9 +22,7 @@ export default function WithBaseLayout({
|
||||
|
||||
return (
|
||||
<BaseLayout currentPath={pathname ?? ""} handleMenuClick={handleMenuClick}>
|
||||
<MenuWrapper>
|
||||
<PageLayout>{children}</PageLayout>
|
||||
</MenuWrapper>
|
||||
<PageLayout>{children}</PageLayout>
|
||||
</BaseLayout>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user