mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 04:25:39 +01:00
New admin section.
This commit is contained in:
parent
b78ff3b477
commit
ce1f6c3618
44 changed files with 515 additions and 157 deletions
|
|
@ -1,12 +1,12 @@
|
|||
import { DataGrid } from '@/components/common/DataGrid';
|
||||
import { useWebsitesQuery } from '@/components/hooks';
|
||||
import { useUserWebsitesQuery } from '@/components/hooks';
|
||||
import { WebsitesTable } from '@/app/(main)/settings/websites/WebsitesTable';
|
||||
|
||||
export function UserWebsites({ userId }) {
|
||||
const queryResult = useWebsitesQuery({ userId });
|
||||
const queryResult = useUserWebsitesQuery({ userId });
|
||||
|
||||
return (
|
||||
<DataGrid queryResult={queryResult}>
|
||||
<DataGrid query={queryResult}>
|
||||
{({ data }) => (
|
||||
<WebsitesTable data={data} showActions={true} allowEdit={true} allowView={true} />
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -8,5 +8,5 @@ export default async function ({ params }: { params: Promise<{ userId: string }>
|
|||
}
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'User Settings',
|
||||
title: 'Users',
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue