Updates to team components.

This commit is contained in:
Mike Cao committed 2024-02-04 18:03:26 -08:00
1 parent 102f5b78b1
commit dbb3801e66
28 files changed
+173 -159

No files matched your search

+2 -1
View File
@@ -3,8 +3,9 @@ import useApi from './useApi';
export function useWebsite(websiteId: string, options?: { [key: string]: any }) {
const { get, useQuery } = useApi();
return useQuery({
queryKey: ['websites', websiteId],
queryKey: ['websites', { websiteId }],
queryFn: () => get(`/websites/${websiteId}`),
enabled: !!websiteId,
...options,