File tree 2 files changed +17
-14
lines changed
2 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 1
1
import Image from 'next/image' ;
2
2
import { useState } from 'react' ;
3
3
import usePostComment from '@/hooks/mutations/usePostComment' ;
4
+ import PaperPlaneIcon from '@/public/PaperPlaneTilt.svg' ;
4
5
import FlexBox from '../../FlexBox' ;
5
- import Button from '../../Button' ;
6
6
7
7
export function BoardCardCommentWrapper ( {
8
8
children,
@@ -69,26 +69,28 @@ export function BoardCardCommentWrapper({
69
69
) }
70
70
</ FlexBox >
71
71
< 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 >
78
80
< input
79
81
type = "text"
80
82
placeholder = "댓글로 이웃과 소통해보세요!"
81
83
className = "border rounded-[10px] py-[16px] px-[20px] w-full body4 text-grey-400"
82
84
value = { commentText }
83
85
onChange = { ( event ) => setCommentText ( event . target . value ) }
84
86
/>
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 >
92
94
</ FlexBox >
93
95
</ FlexBox >
94
96
) ;
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ export default function FeedBoardCard({
47
47
>
48
48
< FlexBox
49
49
direction = "column"
50
+ justify = "start"
50
51
align = "start"
51
52
className = "max-h-[82px] overflow-hidden"
52
53
>
You can’t perform that action at this time.
0 commit comments