diff options
Diffstat (limited to 'src/App.web.tsx')
-rw-r--r-- | src/App.web.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx index 1efa0567c..9d1bd3506 100644 --- a/src/App.web.tsx +++ b/src/App.web.tsx @@ -10,7 +10,6 @@ import 'view/icons' import {ThemeProvider as Alf} from '#/alf' import {useColorModeTheme} from '#/alf/util/useColorModeTheme' import {init as initPersistedState} from '#/state/persisted' -import {useColorMode} from 'state/shell' import {Shell} from 'view/shell/index' import {ToastContainer} from 'view/com/util/Toast.web' import {ThemeProvider} from 'lib/ThemeContext' @@ -36,8 +35,7 @@ import {Provider as PortalProvider} from '#/components/Portal' function InnerApp() { const {isInitialLoad, currentAccount} = useSession() const {resumeSession} = useSessionApi() - const colorMode = useColorMode() - const theme = useColorModeTheme(colorMode) + const theme = useColorModeTheme() // init useEffect(() => { @@ -55,7 +53,7 @@ function InnerApp() { key={currentAccount?.did}> <LoggedOutViewProvider> <UnreadNotifsProvider> - <ThemeProvider theme={colorMode}> + <ThemeProvider theme={theme}> {/* All components should be within this provider */} <RootSiblingParent> <SafeAreaProvider> |