Updates to team components.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user