Converted user and website settings.

This commit is contained in:
Mike Cao 2025-02-21 16:55:05 -08:00
parent 4c24e54fdd
commit b5c6194f36
59 changed files with 363 additions and 554 deletions

View file

@ -1,4 +1,4 @@
import { DataTable } from '@/components/common/DataTable';
import { DataGrid } from '@/components/common/DataGrid';
import { TeamMembersTable } from './TeamMembersTable';
import { useTeamMembers } from '@/components/hooks';
@ -12,8 +12,8 @@ export function TeamMembersDataTable({
const queryResult = useTeamMembers(teamId);
return (
<DataTable queryResult={queryResult}>
<DataGrid queryResult={queryResult}>
{({ data }) => <TeamMembersTable data={data} teamId={teamId} allowEdit={allowEdit} />}
</DataTable>
</DataGrid>
);
}

View file

@ -1,7 +1,7 @@
import { Metadata } from 'next';
import { TeamPage } from './TeamPage';
export default async function ({ params }: { params: { teamId: string } }) {
export default async function ({ params }: { params: Promise<{ teamId: string }> }) {
const { teamId } = await params;
return <TeamPage teamId={teamId} />;

View file

@ -1,4 +1,4 @@
import { DataTable } from '@/components/common/DataTable';
import { DataGrid } from '@/components/common/DataGrid';
import { useTeamWebsites } from '@/components/hooks';
import { TeamWebsitesTable } from './TeamWebsitesTable';
@ -12,8 +12,8 @@ export function TeamWebsitesDataTable({
const queryResult = useTeamWebsites(teamId);
return (
<DataTable queryResult={queryResult}>
<DataGrid queryResult={queryResult}>
{({ data }) => <TeamWebsitesTable data={data} teamId={teamId} allowEdit={allowEdit} />}
</DataTable>
</DataGrid>
);
}

View file

@ -1,7 +1,7 @@
import { TeamWebsitesPage } from './TeamWebsitesPage';
import { Metadata } from 'next';
export default async function ({ params }: { params: { teamId: string } }) {
export default async function ({ params }: { params: Promise<{ teamId: string }> }) {
const { teamId } = await params;
return <TeamWebsitesPage teamId={teamId} />;