diff --git a/src/CONST.js b/src/CONST.js index ce39818a791d..76c870f16f58 100644 --- a/src/CONST.js +++ b/src/CONST.js @@ -3,7 +3,6 @@ const CLOUDFRONT_URL = 'https://d2k5nsl2zxldvw.cloudfront.net'; const CONST = { BETAS: { ALL: 'all', - REPORT_ACTION_CONTEXT_MENU: 'reportActionContextMenu', }, BUTTON_STATES: { DEFAULT: 'default', diff --git a/src/pages/home/report/ReportActionContextMenu.js b/src/pages/home/report/ReportActionContextMenu.js index e667ba5c65f9..f3055f775deb 100644 --- a/src/pages/home/report/ReportActionContextMenu.js +++ b/src/pages/home/report/ReportActionContextMenu.js @@ -22,6 +22,7 @@ const CONTEXT_ACTIONS = [ icon: ClipboardIcon, successText: 'Copied!', successIcon: Checkmark, + shouldShow: true, // If return value is true, we switch the `text` and `icon` on // `ReportActionContextMenuItem` with `successText` and `successIcon` which will fallback to @@ -45,6 +46,7 @@ const CONTEXT_ACTIONS = [ { text: 'Copy Link', icon: LinkCopy, + shouldShow: false, onPress: () => {}, }, @@ -52,6 +54,7 @@ const CONTEXT_ACTIONS = [ { text: 'Mark as Unread', icon: Mail, + shouldShow: false, onPress: () => {}, }, @@ -59,6 +62,7 @@ const CONTEXT_ACTIONS = [ { text: 'Edit Comment', icon: Pencil, + shouldShow: false, onPress: () => {}, }, @@ -66,6 +70,7 @@ const CONTEXT_ACTIONS = [ { text: 'Delete Comment', icon: Trashcan, + shouldShow: false, onPress: () => {}, }, ]; @@ -95,7 +100,7 @@ const ReportActionContextMenu = (props) => { const wrapperStyle = getReportActionContextMenuStyles(props.isMini); return props.isVisible && ( - {CONTEXT_ACTIONS.map(contextAction => ( + {CONTEXT_ACTIONS.map(contextAction => contextAction.shouldShow && (