Skip to content

Commit 4f61554

Browse files
committed
feat: 변수명 확실하게 변경하기
1 parent f225b64 commit 4f61554

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/domain/Post/components/FeedItem/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type Props = Pick<
2929
| 'thumbnailDir'
3030
| 'boardName'
3131
> & {
32-
isAllCategory?: boolean
32+
showCommunityBadge?: boolean
3333
}
3434

3535
const FeedItem = ({
@@ -45,7 +45,7 @@ const FeedItem = ({
4545
myScrap,
4646
thumbnailDir,
4747
boardName,
48-
isAllCategory,
48+
showCommunityBadge,
4949
}: Props) => {
5050
const timeDistance = formatDistanceToNow(createdAt)
5151
const navigate = useNavigate()
@@ -59,7 +59,7 @@ const FeedItem = ({
5959
<div className={s.ContentsWrapper}>
6060
<div className={s.Header}>
6161
<div className={s.LeftWrapper}>
62-
{isAllCategory && <PostCategoryBadge boardName={boardName} />}
62+
{showCommunityBadge && <PostCategoryBadge boardName={boardName} />}
6363
<Typography typography="headingSB" color="darkGray2">
6464
{timeDistance}
6565
</Typography>

src/features/Community/PostAll/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const CommunityPostAll = () => {
2626
<Pagination
2727
items={posts}
2828
className={s.Wrapper}
29-
render={post => <FeedItem {...post} isAllCategory />}
29+
render={post => <FeedItem {...post} showCommunityBadge />}
3030
hasNextPage={hasNextPage}
3131
isFetchingNextPage={isFetchingNextPage}
3232
fetchNextPage={fetchNextPage}

0 commit comments

Comments
 (0)