File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/page/forum-post/layouts/PostBody/Comment Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,6 @@ const CommentListItem = ({ comment }: ICommentListItemProps) => {
40
40
const { mutate : deleteCommentMutate } = useDeletePostCommentMutation ( ) ;
41
41
const { mutate : updateCommentLikeMutate } = useUpdateCommentLikeMutation ( ) ;
42
42
43
- const handleChangeEditModeClick = ( ) => {
44
- setIsEditMode ( ! isEditMode ) ;
45
- } ;
46
-
47
43
const handleUpdateCommentDetailClick = ( ) => {
48
44
if ( ! editDetail ) return toast . error ( "내용을 입력해주세요." ) ;
49
45
updateCommentMutate ( {
@@ -95,7 +91,7 @@ const CommentListItem = ({ comment }: ICommentListItemProps) => {
95
91
< >
96
92
< CommentButton
97
93
color = { color . primary_red }
98
- onClick = { handleChangeEditModeClick }
94
+ onClick = { ( ) => setIsEditMode ( ! isEditMode ) }
99
95
>
100
96
취소
101
97
</ CommentButton >
@@ -110,7 +106,7 @@ const CommentListItem = ({ comment }: ICommentListItemProps) => {
110
106
< >
111
107
< CommentButton
112
108
color = { color . primary_blue }
113
- onClick = { handleChangeEditModeClick }
109
+ onClick = { ( ) => setIsEditMode ( ! isEditMode ) }
114
110
>
115
111
수정
116
112
</ CommentButton >
You can’t perform that action at this time.
0 commit comments