fix setTheme at share
This commit is contained in:
parent
c18960efb7
commit
dcf1bc8a51
|
@ -141,7 +141,7 @@ class Root extends React.Component<{}, IState> {
|
|||
setTheme = (newTheme = {}) => {
|
||||
// change theme state
|
||||
this.setState(
|
||||
prevState => newThemeState(prevState, newTheme as IThemePreference),
|
||||
prevState => newThemeState(prevState.themePreferences, newTheme as IThemePreference),
|
||||
() => {
|
||||
const { themePreferences } = this.state;
|
||||
// subscribe to Appearance changes
|
||||
|
|
Loading…
Reference in New Issue