Fixed websites paging.

This commit is contained in:
Mike Cao 2024-02-19 11:31:11 -08:00
parent 9671414edd
commit d709f4eb80
14 changed files with 34 additions and 36 deletions

View file

@ -4,21 +4,19 @@ import DataTable from 'components/common/DataTable';
import { useWebsites } from 'components/hooks';
export function WebsitesDataTable({
userId,
teamId,
allowEdit = true,
allowView = true,
showActions = true,
children,
}: {
userId?: string;
teamId?: string;
allowEdit?: boolean;
allowView?: boolean;
showActions?: boolean;
children?: ReactNode;
}) {
const queryResult = useWebsites({ userId, teamId });
const queryResult = useWebsites({ teamId });
return (
<DataTable queryResult={queryResult}>