feat: add name to user list
This commit is contained in:
parent
b286034977
commit
b26a5ef2d0
1 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ const UserList = (props) => {
|
||||||
>
|
>
|
||||||
{isXsmall ? (
|
{isXsmall ? (
|
||||||
<SimpleList
|
<SimpleList
|
||||||
primaryText={(record) => record.name}
|
primaryText={(record) => record.userName}
|
||||||
secondaryText={(record) =>
|
secondaryText={(record) =>
|
||||||
record.lastLoginAt && new Date(record.lastLoginAt).toLocaleString()
|
record.lastLoginAt && new Date(record.lastLoginAt).toLocaleString()
|
||||||
}
|
}
|
||||||
|
|
@ -40,6 +40,7 @@ const UserList = (props) => {
|
||||||
) : (
|
) : (
|
||||||
<Datagrid rowClick="edit">
|
<Datagrid rowClick="edit">
|
||||||
<TextField source="userName" />
|
<TextField source="userName" />
|
||||||
|
<TextField source="name" />
|
||||||
<BooleanField source="isAdmin" />
|
<BooleanField source="isAdmin" />
|
||||||
<DateField source="lastLoginAt" locales="pt-BR" />
|
<DateField source="lastLoginAt" locales="pt-BR" />
|
||||||
<DateField source="updatedAt" locales="pt-BR" />
|
<DateField source="updatedAt" locales="pt-BR" />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue