Skip to content

Commit

Permalink
sdp-tech#523 fix : change updated to created and add likecount
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsikkk committed Oct 10, 2023
1 parent 392073f commit 16f597f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/Community/CommunityDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ const Writer = styled.span`
color: #1E90FF;
}
`
const LikeCount = styled.p`
`


export default function CommunityDetail({ board, id, format }) {
const [loading, setLoading] = useState(true);
Expand Down Expand Up @@ -190,7 +194,8 @@ export default function CommunityDetail({ board, id, format }) {
<Writer style={{ margin: '0 5% 0 0' }} onClick={() => {otherUserData(detail.email)}}>
{detail.nickname}
</Writer>
{detail.updated.slice(0, 10)} 작성
{detail.created.slice(0, 10)} 작성
<LikeCount>좋아요 : {detail.likeCount}</LikeCount>
</Info>
<Content>
{open && <OtherUserData open = {open} userData = {otherUser} handleClose = {handleClose}/>}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Community/CommunityList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export default function CommunityList({ board, format }) {
-
{data.commentCount}</Info>
<CommunityWriter onClick={() => {otherUserData(data.email)}}>{data.nickname}</CommunityWriter>
<CreatedAt>{data.updated.slice(0, 10)}</CreatedAt>
<CreatedAt>{data.created.slice(0, 10)}</CreatedAt>
</List>
))
}
Expand Down

0 comments on commit 16f597f

Please sign in to comment.