Merge branch 'feat/ui-0.7.0' into 'test'

refactor(ui): modify the users page display field

See merge request opensource/answer!336
This commit is contained in:
Ren Yubin 2022-12-14 03:06:08 +00:00
commit 8e39ad4596
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ const Users = () => {
{user.display_name}
</Link>
<div className="text-secondary fs-14">
{user.rank} {t('reputation')}
{key === 'users_with_the_most_vote'
? `${user.vote_count} ${t('votes')}`
: `${user.rank} ${t('reputation')}`}
</div>
</div>
</div>