From e08bc44731b57d0381e6d55b82fd6ca65f453ab6 Mon Sep 17 00:00:00 2001 From: pipisebastian Date: Tue, 26 Nov 2024 13:46:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20page=20=EC=BB=B4=ED=8F=AC=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=20=ED=95=84=EC=9A=94=EC=97=86=EB=8A=94=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=A0=84=EB=8B=AC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #193 --- client/src/features/page/Page.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/src/features/page/Page.tsx b/client/src/features/page/Page.tsx index 3434a811..b391ab40 100644 --- a/client/src/features/page/Page.tsx +++ b/client/src/features/page/Page.tsx @@ -12,7 +12,6 @@ interface PageProps extends PageType { handlePageSelect: ({ pageId, isSidebar }: { pageId: string; isSidebar?: boolean }) => void; handlePageClose: (pageId: string) => void; handleTitleChange: (pageId: string, newTitle: string) => void; - updatePageData: (pageId: string, newData: serializedEditorDataProps) => void; serializedEditorData: serializedEditorDataProps | null; } @@ -26,7 +25,6 @@ export const Page = ({ handlePageSelect, handlePageClose, handleTitleChange, - updatePageData, serializedEditorData, }: PageProps) => { const { position, size, pageDrag, pageResize, pageMinimize, pageMaximize } = usePage({ x, y }); @@ -46,7 +44,7 @@ export const Page = ({ // serializedEditorData prop이 변경되면 local state도 업데이트 useEffect(() => { setSerializedEditorDatas(serializedEditorData); - }, [serializedEditorData, updatePageData]); + }, [serializedEditorData]); if (!serializedEditorDatas) { return null; @@ -76,7 +74,6 @@ export const Page = ({ onTitleChange={onTitleChange} pageId={id} serializedEditorData={serializedEditorDatas} - updatePageData={updatePageData} /> {DIRECTIONS.map((direction) => (