Settings refactor.

This commit is contained in:
Mike Cao
2025-07-11 22:55:30 -07:00
parent 1b81074752
commit c98f324c22
56 changed files with 706 additions and 348 deletions

View File

@@ -6,17 +6,16 @@ import { ReactNode } from 'react';
export function TeamsDataTable({
allowEdit,
showActions,
children,
}: {
allowEdit?: boolean;
showActions?: boolean;
children?: ReactNode;
}) {
const { user } = useLoginQuery();
const queryResult = useUserTeamsQuery(user.id);
const query = useUserTeamsQuery(user.id);
return (
<DataGrid query={queryResult} renderEmpty={() => children}>
<DataGrid query={query}>
{({ data }) => {
return <TeamsTable data={data} allowEdit={allowEdit} showActions={showActions} />;
}}