Fix room state events display (#100)

* Fix room state events table display

* update readme
This commit is contained in:
Aine
2024-10-23 13:48:21 +03:00
committed by GitHub
parent 865e53388e
commit 28ef08de03
4 changed files with 22 additions and 6 deletions

View File

@@ -187,7 +187,7 @@ export const RoomShow = (props: ShowProps) => {
<Datagrid style={{ width: "100%" }} bulkActionButtons={false}>
<TextField source="type" sortable={false} />
<DateField source="origin_server_ts" showTime options={DATE_FORMAT} sortable={false} />
<TextField source="content" sortable={false} />
<FunctionField source="content" sortable={false} render={record => `${JSON.stringify(record.content, null, 2)}`} />
<ReferenceField source="sender" reference="users" sortable={false}>
<TextField source="id" />
</ReferenceField>