Skip to content

Commit

Permalink
Update examples/react_admin
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Aug 20, 2024
1 parent 368b112 commit 64e8b52
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Binary file modified examples/react_admin/Screenshot-List.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/react_admin/Screenshot-View.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion examples/react_admin/frontend/src/dataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export const dataProvider: DataProvider = {
nodes {
id
title
content
createdAt
updatedAt
}
paginationInfo {
pages
Expand Down Expand Up @@ -56,6 +57,8 @@ export const dataProvider: DataProvider = {
id
title
content
createdAt
updatedAt
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion examples/react_admin/frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
Expand All @@ -18,6 +20,8 @@ const PostShow = () => (
<TextField source="id" />
<TextField source="title" />
<TextField source="content" />
<TextField source="createdAt" />
<TextField source="updatedAt" />
</SimpleShowLayout>
</Show>
);
Expand Down

0 comments on commit 64e8b52

Please sign in to comment.