fix setTheme at share

This commit is contained in:
Reinaldo Neto 2022-07-30 12:20:30 -03:00
parent c18960efb7
commit dcf1bc8a51
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class Root extends React.Component<{}, IState> {
setTheme = (newTheme = {}) => { setTheme = (newTheme = {}) => {
// change theme state // change theme state
this.setState( this.setState(
prevState => newThemeState(prevState, newTheme as IThemePreference), prevState => newThemeState(prevState.themePreferences, newTheme as IThemePreference),
() => { () => {
const { themePreferences } = this.state; const { themePreferences } = this.state;
// subscribe to Appearance changes // subscribe to Appearance changes