summaryrefslogtreecommitdiff
path: root/src/lib/ServiceList.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-04-17 13:08:48 +0300
committereug-vs <eug-vs@keemail.me>2021-04-17 13:09:55 +0300
commita4a1c456e0788ca52261efb38ff3998710a42a59 (patch)
treef99725f250c5fc7ae8889760a38f3e4d14a6cc61 /src/lib/ServiceList.tsx
parentf0e470472a16957217b091489afdab2006719294 (diff)
downloadcommercel-ui-a4a1c456e0788ca52261efb38ff3998710a42a59.tar.gz
feat: add Filters to Page
Diffstat (limited to 'src/lib/ServiceList.tsx')
-rw-r--r--src/lib/ServiceList.tsx11
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>
);