mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 02:55:38 +01:00
Updated query hooks for teams and websites.
This commit is contained in:
parent
9448aa3ab5
commit
2fa50892d8
61 changed files with 508 additions and 539 deletions
18
src/app/(main)/settings/users/[id]/UserWebsites.tsx
Normal file
18
src/app/(main)/settings/users/[id]/UserWebsites.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
'use client';
|
||||
import WebsitesTable from 'app/(main)/settings/websites/WebsitesTable';
|
||||
import DataTable from 'components/common/DataTable';
|
||||
import { useWebsites } from 'components/hooks';
|
||||
|
||||
export function UserWebsites({ userId }) {
|
||||
const queryResult = useWebsites({ userId });
|
||||
|
||||
return (
|
||||
<DataTable queryResult={queryResult}>
|
||||
{({ data }) => (
|
||||
<WebsitesTable data={data} showActions={true} allowEdit={true} allowView={true} />
|
||||
)}
|
||||
</DataTable>
|
||||
);
|
||||
}
|
||||
|
||||
export default UserWebsites;
|
||||
Loading…
Add table
Add a link
Reference in a new issue