Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Update index.tsx, Added role tab #367

Merged
merged 2 commits into from
Jun 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions web/src/pages/admin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,17 @@ const Admin: FC<Props> = ({ me, errorMe }) => {
width: 350,
// responsive: ['md'],
},
{
title: 'Role',
dataIndex: 'role',
key: 'role',
render: (value: string, record) => <>{<Tag color="blue">{record.role}</Tag>}</>
},
{
title: 'Username',
dataIndex: 'username',
key: 'username',
render: (value: string, record) => <>{record.role && <Tag color="red">{record.role}</Tag>} {value}</>
render: (value: string, record) => <>{value}</>
},
{
title: 'Name',
Expand Down Expand Up @@ -268,4 +274,4 @@ const Admin: FC<Props> = ({ me, errorMe }) => {
</Layout>
}

export default Admin
export default Admin