diff --git a/src/Detail/components/LecueNoteListContainer/index.tsx b/src/Detail/components/LecueNoteListContainer/index.tsx index 89b39b79..7f44f4c6 100644 --- a/src/Detail/components/LecueNoteListContainer/index.tsx +++ b/src/Detail/components/LecueNoteListContainer/index.tsx @@ -29,7 +29,7 @@ interface LecueNoteListContainerProps { noteList: NoteType[]; postedStickerList: postedStickerType[]; isEditable: boolean; - setEditableStateFalse: () => void; + setEditableStateTrue: () => void; bookUuid: string; bookId: number; } @@ -41,7 +41,7 @@ function LecueNoteListContainer(props: LecueNoteListContainerProps) { noteList, postedStickerList, isEditable, - setEditableStateFalse, + setEditableStateTrue, bookUuid, bookId, } = props; @@ -85,8 +85,8 @@ function LecueNoteListContainer(props: LecueNoteListContainerProps) { postedStickerId: stickerId, stickerImage: stickerImage, })); - } else { - setEditableStateFalse(); + + setEditableStateTrue(); } }, [location.state, isEditable]); diff --git a/src/Detail/page/DetailPage/index.tsx b/src/Detail/page/DetailPage/index.tsx index bd14ce39..f64c6ace 100644 --- a/src/Detail/page/DetailPage/index.tsx +++ b/src/Detail/page/DetailPage/index.tsx @@ -22,8 +22,8 @@ function DetailPage() { : useGetBookDetail(bookUuid); const postMutation = usePostStickerState(bookUuid); - const setEditableStateFalse = () => { - setIsEditable(false); + const setEditableStateTrue = () => { + setIsEditable(true); }; return isLoading || postMutation.isLoading ? ( @@ -39,7 +39,7 @@ function DetailPage() { bookId={bookDetail.bookId} bookUuid={bookUuid} isEditable={isEditable} - setEditableStateFalse={setEditableStateFalse} + setEditableStateTrue={setEditableStateTrue} noteNum={bookDetail.noteNum} backgroundColor={bookDetail.bookBackgroundColor} noteList={bookDetail.noteList}