Skip to content

Commit

Permalink
fix: copilot theme
Browse files Browse the repository at this point in the history
  • Loading branch information
willydouhard committed Jun 18, 2024
1 parent b32c872 commit abf4108
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Nothing unreleased.
### Fixed

- Chat profile icon in copilot should load
- Theme should work with Copilot

### Removed

Expand Down
2 changes: 1 addition & 1 deletion libs/copilot/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function App({ widgetConfig }: Props) {
useEffect(() => {
if (!config) return;
const themeVariant = widgetConfig.theme || config.ui.theme.default;
window.theme = themeVariant;
window.theme = config.ui.theme;
widgetConfig.theme = themeVariant;
setSettings((old) => ({
...old,
Expand Down

0 comments on commit abf4108

Please sign in to comment.