Skip to content

Commit

Permalink
optimize rendering KeyboardShortcutsModal
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslav committed Nov 3, 2022
1 parent 7ffe2c0 commit 2410290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/ScreenWrapper/BaseScreenWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import onScreenTransitionEnd from '../../libs/onScreenTransitionEnd';
import * as StyleUtils from '../../styles/StyleUtils';
import styles from '../../styles/styles';
import HeaderGap from '../HeaderGap';
import KeyboardShortcutsModal from '../KeyboardShortcutsModal';
import OfflineIndicator from '../OfflineIndicator';
import compose from '../../libs/compose';
import withNavigation from '../withNavigation';
Expand Down Expand Up @@ -87,7 +86,6 @@ class BaseScreenWrapper extends React.Component {
})
: this.props.children
}
<KeyboardShortcutsModal />
{this.props.isSmallScreenWidth && (
<OfflineIndicator />
)}
Expand Down
2 changes: 2 additions & 0 deletions src/pages/home/sidebar/SidebarScreen/BaseSidebarScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Performance from '../../../../libs/Performance';
import * as Welcome from '../../../../libs/actions/Welcome';
import {sidebarPropTypes, sidebarDefaultProps} from './sidebarPropTypes';
import withDrawerState from '../../../../components/withDrawerState';
import KeyboardShortcutsModal from '../../../../components/KeyboardShortcutsModal';

const propTypes = {

Expand Down Expand Up @@ -124,6 +125,7 @@ class BaseSidebarScreen extends Component {
onPress={this.showCreateMenu}
/>
</View>
<KeyboardShortcutsModal />
<PopoverMenu
onClose={this.hideCreateMenu}
isVisible={this.state.isCreateMenuActive}
Expand Down

0 comments on commit 2410290

Please sign in to comment.