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:
Deepak Singh
2023-07-05 03:58:59 +05:30
committed by GitHub
parent 41edcd81d8
commit 9c09da18db
9 changed files with 115 additions and 6 deletions

View File

@ -0,0 +1,7 @@
import { useGetClientConfigQuery } from '~/generated/graphql';
export function useFetchClientConfig() {
const { data } = useGetClientConfigQuery();
return data?.clientConfig;
}

View File

@ -0,0 +1,6 @@
import { atom } from 'recoil';
export const displayGoogleLogin = atom<boolean>({
key: 'displayGoogleLogin',
default: true,
});

View File

@ -0,0 +1,6 @@
import { atom } from 'recoil';
export const prefillLoginWithSeed = atom<boolean>({
key: 'prefillLoginWithSeed',
default: true,
});