This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/test by this push:
new 1997af87 fix: eslint
1997af87 is described below
commit 1997af872ffb2fe74f2234a857ceb1daec142ceb
Author: shuai <[email protected]>
AuthorDate: Fri Oct 18 15:49:29 2024 +0800
fix: eslint
---
.../Users/Personal/components/Overview/index.tsx | 27 +++++++++++-----------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/ui/src/pages/Users/Personal/components/Overview/index.tsx
b/ui/src/pages/Users/Personal/components/Overview/index.tsx
index 049f07f0..60d502e9 100644
--- a/ui/src/pages/Users/Personal/components/Overview/index.tsx
+++ b/ui/src/pages/Users/Personal/components/Overview/index.tsx
@@ -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>