Skip to content

Commit

Permalink
Whitelabel: fix favicon and logo selection
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed May 20, 2024
1 parent 6a10baa commit b13ee6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Settings/Whitelabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export default function Whitelabel(props) {
},
}).then((response) => {
updateSettingsLoaded(`appLogo${mode}`, response.data);
colorMode.setAppLogoLight(response.data);
colorMode[`setAppLogo${mode}`](response.data);
}).catch((err) => {
console.error(
`Houve um problema ao realizar o upload da imagem.`
Expand Down
1 change: 1 addition & 0 deletions frontend/src/layout/themeContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const ColorModeContext = React.createContext({
setPrimaryColorDark: (_) => { },
setAppLogoLight: (_) => { },
setAppLogoDark: (_) => { },
setAppLogoFavicon: (_) => { },
});

export default ColorModeContext;

0 comments on commit b13ee6d

Please sign in to comment.