File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import RatioImage from './RatioImage';
13
13
import media from '../../lib/styles/media' ;
14
14
import PrivatePostLabel from './PrivatePostLabel' ;
15
15
import optimizeImage from '../../lib/optimizeImage' ;
16
+ import { LikeIcon } from '../../static/svg' ;
16
17
17
18
const PostCardBlock = styled . div `
18
19
padding-top: 4rem;
@@ -106,6 +107,16 @@ const PostCardBlock = styled.div`
106
107
margin-left: 0.5rem;
107
108
margin-right: 0.5rem;
108
109
}
110
+
111
+ .likes {
112
+ display: flex;
113
+ align-items: center;
114
+ svg {
115
+ width: 0.875rem;
116
+ height: 0.875rem;
117
+ margin-right: 0.25rem;
118
+ }
119
+ }
109
120
}
110
121
.tags-wrapper {
111
122
margin-bottom: -0.875rem;
@@ -186,6 +197,11 @@ const FlatPostCard = ({ post, hideUser }: PostCardProps) => {
186
197
< span > { formatDate ( post . released_at ) } </ span >
187
198
< div className = "separator" > ·</ div >
188
199
< span > { post . comments_count } 개의 댓글</ span >
200
+ < div className = "separator" > ·</ div >
201
+ < span className = "likes" >
202
+ < LikeIcon />
203
+ { post . likes }
204
+ </ span >
189
205
{ post . is_private && (
190
206
< >
191
207
< div className = "separator" > ·</ div >
You can’t perform that action at this time.
0 commit comments