refactor: menu wrapper에서 useQuery 제거

This commit is contained in:
2025-04-02 15:33:51 +09:00
parent a9739bdba5
commit 4e4bd82009
3 changed files with 13 additions and 16 deletions
+1 -4
View File
@@ -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>
);
}