feat(user-list): display user role (#1215)

This commit is contained in:
Rıdvan Akca
2023-08-16 20:26:49 +03:00
committed by GitHub
parent cbd1f47e87
commit 590780a539
2 changed files with 14 additions and 0 deletions

View File

@@ -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>
@@ -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

View File

@@ -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",