Refactor client config (#529)

* Refactor client config

* Fix server tests

* Fix lint
This commit is contained in:
Charles Bochet
2023-07-07 11:10:42 -07:00
committed by GitHub
parent 11d18cc269
commit 26b033abc9
38 changed files with 386 additions and 180 deletions

View File

@ -1,2 +1 @@
export * from './select';
export * from './update';

View File

@ -1,10 +0,0 @@
import { gql } from '@apollo/client';
export const GET_CLIENT_CONFIG = gql`
query GetClientConfig {
clientConfig {
display_google_login
prefill_login_with_seed
}
}
`;

View File

@ -1,6 +1,6 @@
import { atom } from 'recoil';
export const authFlowUserEmailState = atom({
export const authFlowUserEmailState = atom<string>({
key: 'authFlowUserEmailState',
default: process.env.NODE_ENV === 'development' ? 'tim@apple.dev' : '',
default: '',
});

View File

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

View File

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