mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
Updated add team website form.
This commit is contained in:
parent
c990459238
commit
a14e11bae2
18 changed files with 149 additions and 129 deletions
24
src/app/(main)/settings/users/UsersDataTable.js
Normal file
24
src/app/(main)/settings/users/UsersDataTable.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
'use client';
|
||||
import useApi from 'components/hooks/useApi';
|
||||
import useFilterQuery from 'components/hooks/useFilterQuery';
|
||||
import DataTable from 'components/common/DataTable';
|
||||
import UsersTable from './UsersTable';
|
||||
import UsersHeader from './UsersHeader';
|
||||
|
||||
export function UsersDataTable() {
|
||||
const { get } = useApi();
|
||||
const queryResult = useFilterQuery(['users'], params => {
|
||||
return get(`/users`, {
|
||||
...params,
|
||||
});
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
<UsersHeader />
|
||||
<DataTable queryResult={queryResult}>{({ data }) => <UsersTable data={data} />}</DataTable>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default UsersDataTable;
|
||||
Loading…
Add table
Add a link
Reference in a new issue