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;
|
||||
}
|
||||
6
front/src/modules/auth/states/displayGoogleLogin.ts
Normal file
6
front/src/modules/auth/states/displayGoogleLogin.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { atom } from 'recoil';
|
||||
|
||||
export const displayGoogleLogin = atom<boolean>({
|
||||
key: 'displayGoogleLogin',
|
||||
default: true,
|
||||
});
|
||||
6
front/src/modules/auth/states/prefillLoginWithSeed.ts
Normal file
6
front/src/modules/auth/states/prefillLoginWithSeed.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { atom } from 'recoil';
|
||||
|
||||
export const prefillLoginWithSeed = atom<boolean>({
|
||||
key: 'prefillLoginWithSeed',
|
||||
default: true,
|
||||
});
|
||||
Reference in New Issue
Block a user