Skip to content

Commit

Permalink
Merge pull request #1981 from Expensify/jules-temporarilyHideIOUModal
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Mechler authored Mar 22, 2021
2 parents 4b914da + bcc869b commit 23d72bc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ class ReportActionCompose extends React.Component {
// focus this from the chat switcher.
// https://github.com/Expensify/Expensify.cash/issues/1228
const inputDisable = this.props.isSmallScreenWidth && Navigation.isDrawerOpen();
// eslint-disable-next-line no-unused-vars
const hasMultipleParticipants = lodashGet(this.props.report, 'participants.length') > 1;

return (
Expand Down Expand Up @@ -233,13 +234,19 @@ class ReportActionCompose extends React.Component {
}, 10);
}}
onItemSelected={() => this.setMenuVisibility(false)}
menuOptions={[CONST.MENU_ITEM_KEYS.ATTACHMENT_PICKER]}

/**
* Temporarily hiding IOU Modal options while Modal is incomplete. Will
* be replaced by a beta flag once IOUConfirm is completed.
menuOptions={hasMultipleParticipants
? [
CONST.MENU_ITEM_KEYS.SPLIT_BILL,
CONST.MENU_ITEM_KEYS.ATTACHMENT_PICKER]
: [
CONST.MENU_ITEM_KEYS.REQUEST_MONEY,
CONST.MENU_ITEM_KEYS.ATTACHMENT_PICKER]}
*/
/>
</>
)}
Expand Down
9 changes: 9 additions & 0 deletions src/pages/home/sidebar/SidebarScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,21 @@ class SidebarScreen extends Component {
onClose={this.toggleCreateMenu}
isVisible={this.state.isCreateMenuActive}
onItemSelected={this.onCreateMenuItemSelected}
menuOptions={[
CONST.MENU_ITEM_KEYS.NEW_CHAT,
CONST.MENU_ITEM_KEYS.NEW_GROUP,
]}

/**
* Temporarily hiding IOU Modal options while Modal is incomplete. Will
* be replaced by a beta flag once IOUConfirm is completed.
menuOptions={[
CONST.MENU_ITEM_KEYS.NEW_CHAT,
CONST.MENU_ITEM_KEYS.REQUEST_MONEY,
CONST.MENU_ITEM_KEYS.NEW_GROUP,
CONST.MENU_ITEM_KEYS.SPLIT_BILL,
]}
*/
/>
</>
)}
Expand Down

0 comments on commit 23d72bc

Please sign in to comment.