Update examples/react_admin
This commit is contained in:
parent
368b1126f7
commit
64e8b528b1
Binary file not shown.
Before Width: | Height: | Size: 817 KiB After Width: | Height: | Size: 821 KiB |
Binary file not shown.
Before Width: | Height: | Size: 806 KiB After Width: | Height: | Size: 822 KiB |
@ -22,7 +22,8 @@ export const dataProvider: DataProvider = {
|
||||
nodes {
|
||||
id
|
||||
title
|
||||
content
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
paginationInfo {
|
||||
pages
|
||||
@ -56,6 +57,8 @@ export const dataProvider: DataProvider = {
|
||||
id
|
||||
title
|
||||
content
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,9 @@ const PostList = () => (
|
||||
<Datagrid bulkActionButtons={false}>
|
||||
<TextField source="id" />
|
||||
<TextField source="title" />
|
||||
<TextField source="content" />
|
||||
<TextField source="createdAt" />
|
||||
<TextField source="updatedAt" />
|
||||
|
||||
</Datagrid>
|
||||
</List>
|
||||
);
|
||||
@ -18,6 +20,8 @@ const PostShow = () => (
|
||||
<TextField source="id" />
|
||||
<TextField source="title" />
|
||||
<TextField source="content" />
|
||||
<TextField source="createdAt" />
|
||||
<TextField source="updatedAt" />
|
||||
</SimpleShowLayout>
|
||||
</Show>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user