Skip to content

Commit 96efb54

Browse files
committed
refactor(style): 코드컨벤션 통일
1 parent bd7f818 commit 96efb54

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/page/forum-post/layouts/PostBody/Comment/CommentListItem.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ const CommentListItem = ({ comment }: ICommentListItemProps) => {
4040
const { mutate: deleteCommentMutate } = useDeletePostCommentMutation();
4141
const { mutate: updateCommentLikeMutate } = useUpdateCommentLikeMutation();
4242

43-
const handleChangeEditModeClick = () => {
44-
setIsEditMode(!isEditMode);
45-
};
46-
4743
const handleUpdateCommentDetailClick = () => {
4844
if (!editDetail) return toast.error("내용을 입력해주세요.");
4945
updateCommentMutate({
@@ -95,7 +91,7 @@ const CommentListItem = ({ comment }: ICommentListItemProps) => {
9591
<>
9692
<CommentButton
9793
color={color.primary_red}
98-
onClick={handleChangeEditModeClick}
94+
onClick={() => setIsEditMode(!isEditMode)}
9995
>
10096
취소
10197
</CommentButton>
@@ -110,7 +106,7 @@ const CommentListItem = ({ comment }: ICommentListItemProps) => {
110106
<>
111107
<CommentButton
112108
color={color.primary_blue}
113-
onClick={handleChangeEditModeClick}
109+
onClick={() => setIsEditMode(!isEditMode)}
114110
>
115111
수정
116112
</CommentButton>

0 commit comments

Comments
 (0)