mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 00:27:11 +01:00
Renamed (app) folder to (main).
This commit is contained in:
parent
5c15778c9b
commit
c990459238
167 changed files with 48 additions and 114 deletions
25
src/app/(main)/settings/users/UsersList.js
Normal file
25
src/app/(main)/settings/users/UsersList.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
'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 UsersList() {
|
||||
const { get } = useApi();
|
||||
const filterQuery = useFilterQuery(['users'], params => {
|
||||
return get(`/users`, {
|
||||
...params,
|
||||
});
|
||||
});
|
||||
const { getProps } = filterQuery;
|
||||
|
||||
return (
|
||||
<>
|
||||
<UsersHeader />
|
||||
<DataTable {...getProps()}>{({ data }) => <UsersTable data={data} />}</DataTable>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default UsersList;
|
||||
Loading…
Add table
Add a link
Reference in a new issue