mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-01 18:19:43 +00:00
Update
This commit is contained in:
1 parent
358c2be0ee
commit
b10eae1bf3
26 files changed
+2509
-53
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import {
|
||||
List,
|
||||
Datagrid,
|
||||
TextField,
|
||||
DateField,
|
||||
ReferenceField,
|
||||
TextInput,
|
||||
} from 'react-admin';
|
||||
|
||||
const messageFilters = [
|
||||
<TextInput key="content" label="Search content" source="content@ilike" alwaysOn />,
|
||||
];
|
||||
|
||||
export const MessageList = () => (
|
||||
<List filters={messageFilters} sort={{ field: 'created_at', order: 'DESC' }}>
|
||||
<Datagrid bulkActionButtons={false}>
|
||||
<ReferenceField source="user_id" reference="profiles" label="Sender">
|
||||
<TextField source="name" />
|
||||
</ReferenceField>
|
||||
<TextField source="content" />
|
||||
<DateField source="created_at" showTime label="Sent At" />
|
||||
<DateField source="read_at" showTime label="Read At" />
|
||||
</Datagrid>
|
||||
</List>
|
||||
);
|
||||
Reference in new issue
Block a user