File tree 2 files changed +4
-4
lines changed
domain/Post/components/FeedItem
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ type Props = Pick<
29
29
| 'thumbnailDir'
30
30
| 'boardName'
31
31
> & {
32
- isAllCategory ?: boolean
32
+ showCommunityBadge ?: boolean
33
33
}
34
34
35
35
const FeedItem = ( {
@@ -45,7 +45,7 @@ const FeedItem = ({
45
45
myScrap,
46
46
thumbnailDir,
47
47
boardName,
48
- isAllCategory ,
48
+ showCommunityBadge ,
49
49
} : Props ) => {
50
50
const timeDistance = formatDistanceToNow ( createdAt )
51
51
const navigate = useNavigate ( )
@@ -59,7 +59,7 @@ const FeedItem = ({
59
59
< div className = { s . ContentsWrapper } >
60
60
< div className = { s . Header } >
61
61
< div className = { s . LeftWrapper } >
62
- { isAllCategory && < PostCategoryBadge boardName = { boardName } /> }
62
+ { showCommunityBadge && < PostCategoryBadge boardName = { boardName } /> }
63
63
< Typography typography = "headingSB" color = "darkGray2" >
64
64
{ timeDistance }
65
65
</ Typography >
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const CommunityPostAll = () => {
26
26
< Pagination
27
27
items = { posts }
28
28
className = { s . Wrapper }
29
- render = { post => < FeedItem { ...post } isAllCategory /> }
29
+ render = { post => < FeedItem { ...post } showCommunityBadge /> }
30
30
hasNextPage = { hasNextPage }
31
31
isFetchingNextPage = { isFetchingNextPage }
32
32
fetchNextPage = { fetchNextPage }
You can’t perform that action at this time.
0 commit comments