mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 12:05:41 +01:00
New admin section.
This commit is contained in:
parent
cdf391d5c2
commit
b78ff3b477
28 changed files with 161 additions and 100 deletions
15
src/app/(main)/admin/users/[userId]/UserWebsites.tsx
Normal file
15
src/app/(main)/admin/users/[userId]/UserWebsites.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { DataGrid } from '@/components/common/DataGrid';
|
||||
import { useWebsitesQuery } from '@/components/hooks';
|
||||
import { WebsitesTable } from '@/app/(main)/settings/websites/WebsitesTable';
|
||||
|
||||
export function UserWebsites({ userId }) {
|
||||
const queryResult = useWebsitesQuery({ userId });
|
||||
|
||||
return (
|
||||
<DataGrid queryResult={queryResult}>
|
||||
{({ data }) => (
|
||||
<WebsitesTable data={data} showActions={true} allowEdit={true} allowView={true} />
|
||||
)}
|
||||
</DataGrid>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue