fix: Create a client config function that is retrieved when app is loading (#496)
* fix: Create a client config function that is retrieved when app is loaded * update index.tsx * fixed linter issues
This commit is contained in:
7
front/src/modules/auth/hooks/useFetchClientConfig.ts
Normal file
7
front/src/modules/auth/hooks/useFetchClientConfig.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { useGetClientConfigQuery } from '~/generated/graphql';
|
||||
|
||||
export function useFetchClientConfig() {
|
||||
const { data } = useGetClientConfigQuery();
|
||||
|
||||
return data?.clientConfig;
|
||||
}
|
||||
Reference in New Issue
Block a user