Skip to content

Commit

Permalink
feat: likeCount 수정 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssuminii committed Nov 11, 2024
1 parent dbd016a commit bea40a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/BestContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface ContentItem {
id: number
title: string
username: string
likes: number
likeCount: number
}

interface BestContentsProps {
Expand All @@ -22,7 +22,7 @@ const BestContents = ({ title, content }: BestContentsProps) => {
<div className="title">{title}</div>
<Ranking>
<ol>
{content.map(({ id, title, username, likes }, i) => (
{content.map(({ id, title, username, likeCount }, i) => (
<Link to={`/postDetail/스터디/@${username}/${encodeURIComponent(title)}/${id}`}>
<li key={id} className="list-container">
<div className="title-text">
Expand All @@ -31,7 +31,7 @@ const BestContents = ({ title, content }: BestContentsProps) => {
<div className="list-info">
<div className="user-name">{username}</div>
<Heart color={colors.primaryBlue} fill={colors.primaryBlue} size={16} />
<span>{likes}</span>
<span>{likeCount}</span>
</div>
</li>
</Link>
Expand Down

0 comments on commit bea40a5

Please sign in to comment.