mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-30 00:52:42 +03:00
passing theme setting for proper dropdown index
This commit is contained in:
parent
e34d3af95c
commit
5bde1928e6
@ -88,6 +88,12 @@ class SettingsContainer extends Component {
|
||||
serverList: SERVER_LIST,
|
||||
}),
|
||||
);
|
||||
|
||||
getTheme().then((themeSetting)=>{
|
||||
this.setState({
|
||||
themeSetting
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// Component Functions
|
||||
@ -452,7 +458,7 @@ class SettingsContainer extends Component {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { serverList, isNotificationMenuOpen, isLoading } = this.state;
|
||||
const { serverList, isNotificationMenuOpen, isLoading, themeSetting } = this.state;
|
||||
|
||||
return (
|
||||
<SettingsScreen
|
||||
@ -461,6 +467,7 @@ class SettingsContainer extends Component {
|
||||
isNotificationMenuOpen={isNotificationMenuOpen}
|
||||
handleOnButtonPress={this._handleButtonPress}
|
||||
isLoading={isLoading}
|
||||
themeSetting={themeSetting}
|
||||
{...this.props}
|
||||
/>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user