mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +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
|
|
@ -1,14 +0,0 @@
|
|||
'use client';
|
||||
import { useContext } from 'react';
|
||||
import TeamsContext from 'app/(main)/teams/TeamsContext';
|
||||
import WebsitesDataTable from 'app/(main)/settings/websites/WebsitesDataTable';
|
||||
|
||||
export default function TeamWebsites() {
|
||||
const team = useContext(TeamsContext);
|
||||
|
||||
if (!team) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <WebsitesDataTable teamId={team.id} />;
|
||||
}
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
import TeamWebsites from './TeamWebsites';
|
||||
import WebsitesDataTable from 'app/(main)/settings/websites/WebsitesDataTable';
|
||||
import WebsitesHeader from 'app/(main)/settings/websites/WebsitesHeader';
|
||||
|
||||
export default function TeamWebsitesPage({ params: { id } }: { params: { id: string } }) {
|
||||
return (
|
||||
<>
|
||||
<WebsitesHeader teamId={id} />
|
||||
<TeamWebsites />
|
||||
<WebsitesDataTable teamId={id} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue