Refactored teams components.

This commit is contained in:
Mike Cao 2024-02-05 20:29:00 -08:00
parent 0e144269ee
commit be5592446a
25 changed files with 122 additions and 81 deletions

View file

@ -0,0 +1,22 @@
'use client';
import DataTable from 'components/common/DataTable';
import { useTeamWebsites } from 'components/hooks';
import TeamWebsitesTable from './TeamWebsitesTable';
export function TeamWebsitesDataTable({
teamId,
allowEdit = false,
}: {
teamId: string;
allowEdit?: boolean;
}) {
const queryResult = useTeamWebsites(teamId);
return (
<DataTable queryResult={queryResult}>
{({ data }) => <TeamWebsitesTable data={data} teamId={teamId} allowEdit={allowEdit} />}
</DataTable>
);
}
export default TeamWebsitesDataTable;