fix(zendesk): zendesk theme

pull/117/head
Rakov Roman 3 years ago committed by Gitea
parent 0e8e83634c
commit e967ee24ed
  1. 12
      src/features/Theme/index.tsx

@ -34,6 +34,18 @@ export const Theme = ({ children }: Props) => {
return clientBase
}, [])
// настройка цветовой гаммы зендеска https://developer.zendesk.com/api-reference/widget/settings/#color
useEffect(() => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(window as any).zESettings = {
webWidget: {
color: {
theme: theme.colors.button,
},
},
}
}, [theme])
const switchTheme = useCallback(() => {
switch (client.name) {
case ClientNames.Lff:

Loading…
Cancel
Save