diff --git a/src/components/MenuItem.js b/src/components/MenuItem.js index 443839024c2b..c36b7b8bb37b 100644 --- a/src/components/MenuItem.js +++ b/src/components/MenuItem.js @@ -24,11 +24,15 @@ const propTypes = { // Boolean whether to display the ArrowRight icon shouldShowRightArrow: PropTypes.bool, + + // A boolean flag that gives the icon a green fill if true + success: PropTypes.bool, }; const defaultProps = { shouldShowRightArrow: false, wrapperStyle: {}, + success: false, }; const MenuItem = ({ @@ -37,6 +41,7 @@ const MenuItem = ({ title, shouldShowRightArrow, wrapperStyle, + success, }) => ( - + diff --git a/src/pages/home/report/ReportActionContextMenuItem.js b/src/pages/home/report/ReportActionContextMenuItem.js index c2884684af1e..590510650b14 100644 --- a/src/pages/home/report/ReportActionContextMenuItem.js +++ b/src/pages/home/report/ReportActionContextMenuItem.js @@ -79,6 +79,7 @@ class ReportActionContextMenuItem extends Component { icon={icon} onPress={this.triggerPressAndUpdateSuccess} wrapperStyle={styles.pr9} + success={this.state.success} /> ) );