@@ -464,7 +464,7 @@ export const UserEdit = (props: EditProps) => {
464464
465465 < FormTab label = { translate ( "resources.devices.name" , { smart_count : 2 } ) } icon = { < DevicesIcon /> } path = "devices" >
466466 < ReferenceManyField reference = "devices" target = "user_id" label = { false } >
467- < Datagrid style = { { width : "100%" } } bulkActionButtons = { false } >
467+ < Datagrid sx = { { width : "100%" } } bulkActionButtons = { false } >
468468 < TextField source = "device_id" sortable = { false } />
469469 < TextField source = "display_name" sortable = { false } />
470470 < TextField source = "last_seen_ip" sortable = { false } />
@@ -477,7 +477,7 @@ export const UserEdit = (props: EditProps) => {
477477 < FormTab label = "resources.connections.name" icon = { < SettingsInputComponentIcon /> } path = "connections" >
478478 < ReferenceField reference = "connections" source = "id" label = { false } link = { false } >
479479 < ArrayField source = "devices[].sessions[0].connections" label = "resources.connections.name" >
480- < Datagrid style = { { width : "100%" } } bulkActionButtons = { false } >
480+ < Datagrid sx = { { width : "100%" } } bulkActionButtons = { false } >
481481 < TextField source = "ip" sortable = { false } />
482482 < DateField source = "last_seen" showTime options = { DATE_FORMAT } sortable = { false } />
483483 < TextField source = "user_agent" sortable = { false } style = { { width : "100%" } } />
@@ -499,7 +499,7 @@ export const UserEdit = (props: EditProps) => {
499499 perPage = { 50 }
500500 sort = { { field : "created_ts" , order : "DESC" } }
501501 >
502- < Datagrid style = { { width : "100%" } } >
502+ < Datagrid sx = { { width : "100%" } } >
503503 < MediaIDField source = "media_id" />
504504 < DateField source = "created_ts" showTime options = { DATE_FORMAT } />
505505 < DateField source = "last_access_ts" showTime options = { DATE_FORMAT } />
@@ -516,19 +516,19 @@ export const UserEdit = (props: EditProps) => {
516516
517517 < FormTab label = { translate ( "resources.rooms.name" , { smart_count : 2 } ) } icon = { < ViewListIcon /> } path = "rooms" >
518518 < ReferenceManyField reference = "joined_rooms" target = "user_id" label = { false } >
519- < Datagrid style = { { width : "100%" } } rowClick = { id => "/rooms/" + id + "/show" } bulkActionButtons = { false } >
520- < TextField source = "id" sortable = { false } label = "resources.rooms.fields.room_id" / >
521- < ReferenceField
522- label = "resources.rooms.fields.name"
523- source = "id"
524- reference = "rooms"
525- sortable = { false }
526- link = ""
527- >
528- < TextField source = "name " sortable = { false } />
529- </ ReferenceField >
530- < MakeAdminBtn />
531- </ Datagrid >
519+ < Datagrid sx = { { width : "100%" } } rowClick = { id => "/rooms/" + id + "/show" } bulkActionButtons = { false } >
520+ < ReferenceField reference = "rooms" source = "id" label = { false } link = { false } sortable = { false } >
521+ < AvatarField source = "avatar" sx = { { height : "40px" , width : "40px" } } />
522+ </ ReferenceField >
523+ < TextField source = "id" label = "resources.rooms.fields.room_id" sortable = { false } />
524+ < ReferenceField reference = "rooms" source = "id" label = "resources.rooms.fields.name" link = { false } sortable = { false } >
525+ < TextField source = "name" />
526+ </ ReferenceField >
527+ < ReferenceField reference = "rooms" source = "id" label = "resources.rooms.fields.joined_members" link = { false } sortable = { false } >
528+ < TextField source = "joined_members " sortable = { false } />
529+ </ ReferenceField >
530+ < MakeAdminBtn />
531+ </ Datagrid >
532532 </ ReferenceManyField >
533533 </ FormTab >
534534
@@ -538,7 +538,7 @@ export const UserEdit = (props: EditProps) => {
538538 path = "pushers"
539539 >
540540 < ReferenceManyField reference = "pushers" target = "user_id" label = { false } >
541- < Datagrid style = { { width : "100%" } } bulkActionButtons = { false } >
541+ < Datagrid sx = { { width : "100%" } } bulkActionButtons = { false } >
542542 < TextField source = "kind" sortable = { false } />
543543 < TextField source = "app_display_name" sortable = { false } />
544544 < TextField source = "app_id" sortable = { false } />
0 commit comments