Wrap up Front chat (#1085)

* Wrap up Front chat

* Wrap up Front chat
This commit is contained in:
Charles Bochet
2023-08-04 19:22:54 -07:00
committed by GitHub
parent 57c465176a
commit 6008789a17
19 changed files with 91 additions and 75 deletions

View File

@ -33,7 +33,7 @@ export const ClientConfigProvider: React.FC<React.PropsWithChildren> = ({
setDebugMode(data?.clientConfig.debugMode);
setSignInPrefilled(data?.clientConfig.signInPrefilled);
setTelemetry(data?.clientConfig.telemetry);
setSupportChat(data?.clientConfig.supportChat);
setSupportChat(data?.clientConfig.support);
}
}, [
data,

View File

@ -13,9 +13,9 @@ export const GET_CLIENT_CONFIG = gql`
enabled
anonymizationEnabled
}
supportChat {
support {
supportDriver
supportFrontendKey
supportFrontChatId
}
}
}

View File

@ -1,11 +1,11 @@
import { atom } from 'recoil';
import { SupportChat } from '~/generated/graphql';
import { Support } from '~/generated/graphql';
export const supportChatState = atom<SupportChat>({
export const supportChatState = atom<Support>({
key: 'supportChatState',
default: {
supportDriver: 'front',
supportFrontendKey: null,
supportDriver: 'none',
supportFrontChatId: null,
},
});