Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
shuashuai committed Oct 18, 2024
1 parent a3a7a36 commit 1997af8
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions ui/src/pages/Users/Personal/components/Overview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,20 @@ const Index: FC<Props> = ({ visible, introduction, data, username }) => {
<div className="mb-4">
<h5 className="mb-3">{t('recent_badges')}</h5>
{Number(recentBadges?.count) > 0 ? (
<Row>
{recentBadges?.list?.map((item) => {
return (
<Col sm={6} md={4} lg={3} key={item.id} className="mb-4">
<CardBadge
data={item}
urlSearchParams={`username=${username}`}
badgePillType="count"
/>
</Col>
);
})}
</Row>) : (
<Row>
{recentBadges?.list?.map((item) => {
return (
<Col sm={6} md={4} lg={3} key={item.id} className="mb-4">
<CardBadge
data={item}
urlSearchParams={`username=${username}`}
badgePillType="count"
/>
</Col>
);
})}
</Row>
) : (
<div className="mb-5">{t('content_empty')}</div>
)}
</div>
Expand Down

0 comments on commit 1997af8

Please sign in to comment.