Skip to content

Commit 5998e04

Browse files
committed
Fix: 댓글 등록 버튼 만듦 #65
1 parent e8de94d commit 5998e04

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

components/ui/BoardCard/BoardCardPackage/CommentWrapper.tsx

+16-14
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Image from 'next/image';
22
import { useState } from 'react';
33
import usePostComment from '@/hooks/mutations/usePostComment';
4+
import PaperPlaneIcon from '@/public/PaperPlaneTilt.svg';
45
import FlexBox from '../../FlexBox';
5-
import Button from '../../Button';
66

77
export function BoardCardCommentWrapper({
88
children,
@@ -69,26 +69,28 @@ export function BoardCardCommentWrapper({
6969
)}
7070
</FlexBox>
7171
<FlexBox className="gap-[9px] w-full">
72-
<Image
73-
src="/Feed/desktop/like.svg"
74-
alt="좋아요"
75-
width={24}
76-
height={24}
77-
/>
72+
<button type="button">
73+
<Image
74+
src="/Feed/desktop/like.svg"
75+
alt="좋아요"
76+
width={24}
77+
height={24}
78+
/>
79+
</button>
7880
<input
7981
type="text"
8082
placeholder="댓글로 이웃과 소통해보세요!"
8183
className="border rounded-[10px] py-[16px] px-[20px] w-full body4 text-grey-400"
8284
value={commentText}
8385
onChange={(event) => setCommentText(event.target.value)}
8486
/>
85-
<Button
86-
onClickAction={postNewComment}
87-
disabled={isLoading}
88-
variant="ghost"
89-
>
90-
{isLoading ? <p>...</p> : <span></span>}
91-
</Button>
87+
<button type="button" onClick={() => postNewComment}>
88+
<PaperPlaneIcon
89+
className={`w-8 h-8 ${
90+
isLoading ? 'fill-grey-300' : 'fill-primary-300'
91+
}`}
92+
/>
93+
</button>
9294
</FlexBox>
9395
</FlexBox>
9496
);

components/ui/BoardCard/FeedBoardCard.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export default function FeedBoardCard({
4747
>
4848
<FlexBox
4949
direction="column"
50+
justify="start"
5051
align="start"
5152
className="max-h-[82px] overflow-hidden"
5253
>

0 commit comments

Comments
 (0)