diff --git a/src/features/Theme/index.tsx b/src/features/Theme/index.tsx index e52ede12..07c86580 100644 --- a/src/features/Theme/index.tsx +++ b/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: