From eb96817a393f3e22d944f9d671caedf40af51860 Mon Sep 17 00:00:00 2001 From: happhee Date: Wed, 7 Aug 2024 08:29:25 +0900 Subject: [PATCH] bugfix : build error --- src/app/workbook/[id]/layout.tsx | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/app/workbook/[id]/layout.tsx b/src/app/workbook/[id]/layout.tsx index 9bad66dd..2db86c44 100644 --- a/src/app/workbook/[id]/layout.tsx +++ b/src/app/workbook/[id]/layout.tsx @@ -3,16 +3,12 @@ import type { Metadata } from "next"; import { createMetadata } from "@shared/utils/metadata"; - import { HydrationBoundary } from "@tanstack/react-query"; import { prefetchWorkbookQuery } from "@workbook/remotes/prefetchWorkbookQuery"; import { WorkbookPageProps } from "@workbook/types"; - -import { getWorkbookQueryOptions } from "@workbook/remotes/getWorkbookQueryOptions"; import TopBar from "@shared/components/TopBar"; - export async function generateMetadata({ params, }: WorkbookPageProps): Promise { @@ -30,7 +26,6 @@ interface WorkbookLayoutProps { children: React.ReactNode; } - export default async function WorkbookLayout({ params, children, @@ -38,13 +33,14 @@ export default async function WorkbookLayout({ const { state } = await prefetchWorkbookQuery({ params }); return ( -
-
-
- +
+
+
+ +
+ {children}
- {children} -
-
+
+ ); }