mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 18:00:17 +01:00
Removed TeamProvider from components.
This commit is contained in:
parent
ec8176e2c2
commit
194472b104
6
src/app/(main)/settings/teams/[teamId]/layout.tsx
Normal file
6
src/app/(main)/settings/teams/[teamId]/layout.tsx
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
'use client';
|
||||||
|
import TeamProvider from 'app/(main)/teams/[teamId]/TeamProvider';
|
||||||
|
|
||||||
|
export default function ({ children, params: { teamId } }) {
|
||||||
|
return <TeamProvider teamId={teamId}>{children}</TeamProvider>;
|
||||||
|
}
|
@ -1,5 +1,4 @@
|
|||||||
'use client';
|
'use client';
|
||||||
import TeamProvider from 'app/(main)/teams/[teamId]/TeamProvider';
|
|
||||||
import TeamMembersDataTable from './TeamMembersDataTable';
|
import TeamMembersDataTable from './TeamMembersDataTable';
|
||||||
import PageHeader from 'components/layout/PageHeader';
|
import PageHeader from 'components/layout/PageHeader';
|
||||||
import { useMessages } from 'components/hooks';
|
import { useMessages } from 'components/hooks';
|
||||||
@ -8,10 +7,10 @@ export function TeamMembersPage({ teamId }: { teamId: string }) {
|
|||||||
const { formatMessage, labels } = useMessages();
|
const { formatMessage, labels } = useMessages();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TeamProvider teamId={teamId}>
|
<>
|
||||||
<PageHeader title={formatMessage(labels.members)} />
|
<PageHeader title={formatMessage(labels.members)} />
|
||||||
<TeamMembersDataTable teamId={teamId} allowEdit={true} />
|
<TeamMembersDataTable teamId={teamId} allowEdit={true} />
|
||||||
</TeamProvider>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,13 +1,8 @@
|
|||||||
'use client';
|
'use client';
|
||||||
import TeamProvider from 'app/(main)/teams/[teamId]/TeamProvider';
|
|
||||||
import TeamDetails from './TeamDetails';
|
import TeamDetails from './TeamDetails';
|
||||||
|
|
||||||
export function TeamPage({ teamId }: { teamId: string }) {
|
export function TeamPage({ teamId }: { teamId: string }) {
|
||||||
return (
|
return <TeamDetails teamId={teamId} />;
|
||||||
<TeamProvider teamId={teamId}>
|
|
||||||
<TeamDetails teamId={teamId} />
|
|
||||||
</TeamProvider>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default TeamPage;
|
export default TeamPage;
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
'use client';
|
'use client';
|
||||||
import TeamProvider from 'app/(main)/teams/[teamId]/TeamProvider';
|
|
||||||
import TeamWebsitesDataTable from './TeamWebsitesDataTable';
|
import TeamWebsitesDataTable from './TeamWebsitesDataTable';
|
||||||
import PageHeader from 'components/layout/PageHeader';
|
import PageHeader from 'components/layout/PageHeader';
|
||||||
import { useMessages } from 'components/hooks';
|
import { useMessages } from 'components/hooks';
|
||||||
@ -8,10 +7,10 @@ export function TeamWebsitesPage({ teamId }: { teamId: string }) {
|
|||||||
const { formatMessage, labels } = useMessages();
|
const { formatMessage, labels } = useMessages();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TeamProvider teamId={teamId}>
|
<>
|
||||||
<PageHeader title={formatMessage(labels.websites)} />
|
<PageHeader title={formatMessage(labels.websites)} />
|
||||||
<TeamWebsitesDataTable teamId={teamId} allowEdit={true} />
|
<TeamWebsitesDataTable teamId={teamId} allowEdit={true} />
|
||||||
</TeamProvider>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user