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) => (