Fixed teams urls.
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
'use client';
|
||||
import WebsitesHeader from 'app/(main)/settings/websites/WebsitesHeader';
|
||||
import WebsitesDataTable from 'app/(main)/settings/websites/WebsitesDataTable';
|
||||
import { useTeamUrl } from 'components/hooks';
|
||||
|
||||
export default function WebsitesPage() {
|
||||
const { teamId } = useTeamUrl();
|
||||
|
||||
export default function WebsitesPage({ teamId }: { teamId: string }) {
|
||||
return (
|
||||
<>
|
||||
<WebsitesHeader teamId={teamId} allowCreate={false} />
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import WebsitesPage from './WebsitesPage';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export default function ({ params: { teamId, userId } }) {
|
||||
return <WebsitesPage teamId={teamId} userId={userId} />;
|
||||
export default function () {
|
||||
return <WebsitesPage />;
|
||||
}
|
||||
|
||||
export const metadata: Metadata = {
|
||||
|
||||
Reference in New Issue
Block a user