mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-11-27 18:15:35 +03:00
Merge branch 'master'
This commit is contained in:
commit
ba485bbb18
1 changed files with 2 additions and 3 deletions
|
@ -52,7 +52,6 @@ import {
|
||||||
useListContext,
|
useListContext,
|
||||||
useNotify,
|
useNotify,
|
||||||
ToolbarClasses,
|
ToolbarClasses,
|
||||||
Identifier,
|
|
||||||
RaRecord,
|
RaRecord,
|
||||||
ImageInput,
|
ImageInput,
|
||||||
ImageField,
|
ImageField,
|
||||||
|
@ -161,7 +160,7 @@ export const UserList = (props: ListProps) => (
|
||||||
pagination={<UserPagination />}
|
pagination={<UserPagination />}
|
||||||
>
|
>
|
||||||
<Datagrid rowClick={usersRowClick} bulkActionButtons={<UserBulkActionButtons />}>
|
<Datagrid rowClick={usersRowClick} bulkActionButtons={<UserBulkActionButtons />}>
|
||||||
<AvatarField source="avatar_src" sx={{ height: "40px", width: "40px" }} />
|
<AvatarField source="avatar_src" sx={{ height: "40px", width: "40px" }} sortBy="avatar_url" />
|
||||||
<TextField source="id" sortBy="name" />
|
<TextField source="id" sortBy="name" />
|
||||||
<TextField source="displayname" />
|
<TextField source="displayname" />
|
||||||
<BooleanField source="is_guest" />
|
<BooleanField source="is_guest" />
|
||||||
|
@ -212,7 +211,7 @@ const UserEditActions = () => {
|
||||||
export const UserCreate = (props: CreateProps) => (
|
export const UserCreate = (props: CreateProps) => (
|
||||||
<Create
|
<Create
|
||||||
{...props}
|
{...props}
|
||||||
redirect={(resource, id, data) => {
|
redirect={(resource: string | undefined, id: Identifier | undefined) => {
|
||||||
return `users/${id}`;
|
return `users/${id}`;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue