From 4f977549db61f49e094989c6fb328ea9d054871c Mon Sep 17 00:00:00 2001 From: robin Date: Wed, 7 Dec 2022 10:19:20 +0800 Subject: [PATCH] refactor(ui): add rank field in table --- ui/src/pages/Admin/Users/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/src/pages/Admin/Users/index.tsx b/ui/src/pages/Admin/Users/index.tsx index 21c8865b..b425f49e 100644 --- a/ui/src/pages/Admin/Users/index.tsx +++ b/ui/src/pages/Admin/Users/index.tsx @@ -17,6 +17,7 @@ import * as Type from '@/common/interface'; import { useChangeModal, useChangeUserRoleModal, useToast } from '@/hooks'; import { useQueryUsers } from '@/services'; import { loggedUserInfoStore } from '@/stores'; +import { formatCount } from '@/utils'; const UserFilterKeys: Type.UserFilterBy[] = [ 'all', @@ -151,6 +152,7 @@ const Users: FC = () => { showReputation={false} /> + {formatCount(user.rank)} {user.e_mail}