Skip to content

Commit

Permalink
Merge pull request #28571 from Expensify/Rory-RemoveUnnecessaryCode
Browse files Browse the repository at this point in the history
  • Loading branch information
thienlnam authored Oct 2, 2023
2 parents f17a6ec + eb3ea28 commit 1341ea2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/pages/home/sidebar/SidebarScreen/index.js
Original file line number Diff line number Diff line change
@@ -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.
*/
Expand Down

0 comments on commit 1341ea2

Please sign in to comment.