From 5bde1928e601f313816a63c97f2c24a4b56de58d Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Sat, 16 Apr 2022 02:25:16 +0500 Subject: [PATCH] passing theme setting for proper dropdown index --- src/screens/settings/container/settingsContainer.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/screens/settings/container/settingsContainer.js b/src/screens/settings/container/settingsContainer.js index ce9dee774..bb6f73976 100644 --- a/src/screens/settings/container/settingsContainer.js +++ b/src/screens/settings/container/settingsContainer.js @@ -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 ( );