diff options
author | eug-vs <eug-vs@keemail.me> | 2021-04-17 13:08:48 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-04-17 13:09:55 +0300 |
commit | a4a1c456e0788ca52261efb38ff3998710a42a59 (patch) | |
tree | f99725f250c5fc7ae8889760a38f3e4d14a6cc61 /src/lib/ServiceList.tsx | |
parent | f0e470472a16957217b091489afdab2006719294 (diff) | |
download | commercel-ui-a4a1c456e0788ca52261efb38ff3998710a42a59.tar.gz |
feat: add Filters to Page
Diffstat (limited to 'src/lib/ServiceList.tsx')
-rw-r--r-- | src/lib/ServiceList.tsx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/ServiceList.tsx b/src/lib/ServiceList.tsx index e7015ae..a3c9842 100644 --- a/src/lib/ServiceList.tsx +++ b/src/lib/ServiceList.tsx @@ -16,6 +16,15 @@ const ServiceList: React.FC = () => { route: `/${service.route}/add${location.search}`, }]; + const filters = [{ + field: '_id', + options: [ + { key: 'a', label: 'a' }, + { key: 'b', label: 'b' }, + { key: 'c', label: 'c' }, + ], + }]; + const handleRowClick = (item: any) => { const route = service.rowLink ? service.rowLink(item) @@ -25,7 +34,7 @@ const ServiceList: React.FC = () => { }; return ( - <Page title={service.name} actions={actions}> + <Page title={service.name} actions={actions} filters={filters}> <ListTable items={data} fields={service.tableFields} handleRowClick={handleRowClick} /> </Page> ); |