From eb3ea2828370091e00d1bfb920212dac6bcfc7af Mon Sep 17 00:00:00 2001 From: rory Date: Mon, 2 Oct 2023 08:44:52 +0800 Subject: [PATCH] Remove unnecessary code --- src/pages/home/sidebar/SidebarScreen/index.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/pages/home/sidebar/SidebarScreen/index.js b/src/pages/home/sidebar/SidebarScreen/index.js index 08888352ddff..5006136a633e 100755 --- a/src/pages/home/sidebar/SidebarScreen/index.js +++ b/src/pages/home/sidebar/SidebarScreen/index.js @@ -1,28 +1,13 @@ import React, {useCallback, useRef} from 'react'; -import {InteractionManager} from 'react-native'; -import {useFocusEffect} from '@react-navigation/native'; import sidebarPropTypes from './sidebarPropTypes'; import BaseSidebarScreen from './BaseSidebarScreen'; import FloatingActionButtonAndPopover from './FloatingActionButtonAndPopover'; import FreezeWrapper from '../../../../libs/Navigation/FreezeWrapper'; import withWindowDimensions from '../../../../components/withWindowDimensions'; -import StatusBar from '../../../../libs/StatusBar'; -import themeColors from '../../../../styles/themes/default'; function SidebarScreen(props) { const popoverModal = useRef(null); - useFocusEffect( - useCallback(() => { - const previousColor = StatusBar.getBackgroundColor(); - InteractionManager.runAfterInteractions(() => StatusBar.setBackgroundColor(themeColors.sidebar)); - - return () => { - InteractionManager.runAfterInteractions(() => StatusBar.setBackgroundColor(previousColor)); - }; - }, []), - ); - /** * Method to hide popover when dragover. */