diff options
Diffstat (limited to 'src/lib/ServiceList.tsx')
-rw-r--r-- | src/lib/ServiceList.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/ServiceList.tsx b/src/lib/ServiceList.tsx index be9a311..21b6077 100644 --- a/src/lib/ServiceList.tsx +++ b/src/lib/ServiceList.tsx @@ -12,7 +12,7 @@ const ServiceList: React.FC = () => { const service = useContext(ServiceContext); const history = useHistory(); const location = useLocation(); - const { data } = hooks[service.route].useList(location.search); + const { data, isValidating } = hooks[service.route].useList(location.search); const actions = service.actions || [{ name: 'Добавить', @@ -37,10 +37,16 @@ const ServiceList: React.FC = () => { return ( <Page title={service.name} + isValidating={isValidating} actions={actions} filters={filters} > - <ListTable items={data} fields={service.tableFields} handleRowClick={handleRowClick} /> + <ListTable + items={data} + fields={service.tableFields} + isValidating={isValidating} + handleRowClick={handleRowClick} + /> </Page> ); }; |