-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): add resources for analytics to show pagination
* add links to pages in dash
- Loading branch information
1 parent
bd8c7f7
commit 2f6b1e9
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Datagrid, List, NumberField, TextField } from "react-admin"; | ||
|
||
export const ContentList = () => ( | ||
<List bulkActionButtons={false} actions={false} title={<div></div>} sort={{ field: 'meta.count', order: 'DESC' }}> | ||
<Datagrid rowClick={false} bulkActionButtons={false} > | ||
<TextField source="id" label="Content-Type" sortable={false} /> | ||
<NumberField source="meta.count" label="Count" /> | ||
</Datagrid> | ||
</List> | ||
); | ||
|
||
export const RecentResultList = () => ( | ||
<List bulkActionButtons={false} actions={false} title={<div></div>} sort={{ field: 'meta.created_at', order: 'DESC' }}> | ||
<Datagrid rowClick={false} bulkActionButtons={false} > | ||
<NumberField source="meta.created_at" noWrap sortable={false} /> | ||
<TextField source="id" sortable={false} /> | ||
</Datagrid> | ||
</List> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters