permissions on FE for email settings

This commit is contained in:
Alex Holliday committed 2025-11-21 14:26:41 -08:00
1 parent 710d506de2
commit 3c71583324
3 files changed
+21 -10

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ const fetcher = async <T,>(url: string, config?: AxiosRequestConfig) => {
return res.data;
};
export const useGet = <T,>(
url: string,
url: string | null,
axiosConfig?: AxiosRequestConfig,
swrConfig?: SWRConfiguration<T, Error>,
extraConfig?: IExtraConfig
@@ -183,7 +183,7 @@ export const useDelete = <R = any,>() => {
return { deleteFn, loading, error };
};
export const useGetOnDemand = <R = any>() => {
export const useGetOnDemand = <R = any,>() => {
const currentTeamId = useAppSelector((state) => state.auth.selectedTeamId);
const [loading, setLoading] = useState(false);
const [error, setError] = useState<string | null>(null);