@@ -13,8 +13,7 @@ import { postIdAtom, userAtom, isPostRepresentativeAtom } from '@recoil/Post/Pos
1313import { getCurrentUserId } from '@utils/getCurrentUserId' ;
1414
1515import Left from '@assets/arrow/left.svg' ;
16- import LikeFill from '@assets/default/like-fill.svg' ;
17- import Like from '@assets/default/like.svg' ;
16+ import Like from '@components/Icons/Like' ;
1817import Message from '@assets/default/message.svg' ;
1918import More from '@assets/default/more.svg' ;
2019
@@ -164,10 +163,18 @@ const PostBase: React.FC<PostBaseProps> = ({ onClickMenu }) => {
164163 < UserProfile onClick = { handleUserClick } >
165164 { post ?. user && < img src = { post . user . profilePictureUrl } alt = "profileImg" /> }
166165 </ UserProfile >
167- < UserName onClick = { handleUserClick } $textTheme = { { style : 'body2-medium' } } color = { theme . colors . black } >
166+ < UserName
167+ onClick = { handleUserClick }
168+ $textTheme = { { style : 'body2-medium' } }
169+ color = { theme . colors . text . primary }
170+ >
168171 { user . nickname }
169172 </ UserName >
170- < StyledText className = "timeAgo" $textTheme = { { style : 'caption2-regular' } } color = { theme . colors . gray3 } >
173+ < StyledText
174+ className = "timeAgo"
175+ $textTheme = { { style : 'caption2-regular' } }
176+ color = { theme . colors . text . tertiary }
177+ >
171178 { timeAgo }
172179 </ StyledText >
173180 < MenuBtn onClick = { onClickMenu } >
@@ -177,16 +184,18 @@ const PostBase: React.FC<PostBaseProps> = ({ onClickMenu }) => {
177184
178185 { ! post ? < ImageSkeleton /> : < ImageSwiper images = { post . postImages . map ( ( image ) => image . url ) } /> }
179186
180- < ClothingInfoList className = "post-mode" >
181- { post ?. postClothings ?. map ( ( clothingObj , index ) => (
182- < ClothingInfoItem key = { index } clothingObj = { clothingObj } />
183- ) ) }
184- </ ClothingInfoList >
187+ { post ?. postClothings && (
188+ < ClothingInfoList className = "post-mode" >
189+ { post . postClothings . map ( ( clothingObj , index ) => (
190+ < ClothingInfoItem key = { index } clothingObj = { clothingObj } />
191+ ) ) }
192+ </ ClothingInfoList >
193+ ) }
185194
186195 < IconRow >
187196 < IconWrapper >
188197 < Icon onClick = { togglePostLikeStatus } >
189- { post ?. isPostLike ? < img src = { LikeFill } alt = "like" /> : < img src = { Like } alt = "like" /> }
198+ { post ?. isPostLike ? < Like isFilled = { true } color = { theme . colors . brand . primary } /> : < Like /> }
190199 </ Icon >
191200 < span onClick = { ( ) => handleLikeCommentOpen ( 'likes' ) } > { post ?. postLikesCount ?? 0 } </ span >
192201 </ IconWrapper >
@@ -208,7 +217,7 @@ const PostBase: React.FC<PostBaseProps> = ({ onClickMenu }) => {
208217 onClick = { toggleTextDisplay }
209218 $showFullText = { showFullText }
210219 $textTheme = { { style : 'body4-light' } }
211- color = { theme . colors . black }
220+ color = { theme . colors . text . primary }
212221 >
213222 { post . content }
214223 </ Content >
0 commit comments