summaryrefslogtreecommitdiff
path: root/src/lib/ServiceList.tsx
diff options
context:
space:
mode:
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>
);