Skip to content

Commit

Permalink
feat(user-list): display user role (#1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
ridvanakca committed Aug 16, 2023
1 parent cbd1f47 commit 590780a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/web/src/components/UserList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ export default function UserList(): React.ReactElement {
</Typography>
</TableCell>

<TableCell component="th">
<Typography
variant="subtitle1"
sx={{ color: 'text.secondary', fontWeight: 700 }}
>
{formatMessage('userList.role')}
</Typography>
</TableCell>

<TableCell component="th" />
</TableRow>
</TableHead>
Expand All @@ -64,6 +73,10 @@ export default function UserList(): React.ReactElement {
<Typography variant="subtitle2">{user.email}</Typography>
</TableCell>

<TableCell>
<Typography variant="subtitle2">{user.role.name}</Typography>
</TableCell>

<TableCell>
<Stack direction="row" gap={1} justifyContent="right">
<IconButton
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"editUser.successfullyUpdated": "The user has been updated.",
"userList.fullName": "Full name",
"userList.email": "Email",
"userList.role": "Role",
"rolesPage.title": "Role management",
"rolesPage.createRole": "Create role",
"deleteRoleButton.title": "Delete role",
Expand Down

0 comments on commit 590780a

Please sign in to comment.