Skip to content

Commit

Permalink
comment updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kushu7 committed Jun 20, 2023
1 parent 77edccf commit 40708cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Modal/index.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ function Modal(props) {
const isFullScreenModal =
props.type === CONST.MODAL.MODAL_TYPE.CENTERED || props.type === CONST.MODAL.MODAL_TYPE.CENTERED_UNSWIPEABLE || props.type === CONST.MODAL.MODAL_TYPE.RIGHT_DOCKED;
setPreviousStatusBarColor(statusBarColor);
// If it is full screen modal then
// match it with appBG otherwise backdrop color
// If it is a full screen modal then match it with appBG, otherwise we use the backdrop color
setStatusBarColor(isFullScreenModal ? themeColors.appBG : StyleUtils.getThemeBackgroundColor(statusBarColor));
props.onModalShow();
};
Expand Down

0 comments on commit 40708cb

Please sign in to comment.