diff --git a/src/components/MenuItem.js b/src/components/MenuItem.js index 2cacb7e26630..803b44750de0 100644 --- a/src/components/MenuItem.js +++ b/src/components/MenuItem.js @@ -64,7 +64,6 @@ const defaultProps = { shouldStackHorizontally: false, avatarSize: undefined, shouldBlockSelection: false, - shouldShowMultilineTitle: false, hoverAndPressStyle: [], furtherDetails: '', furtherDetailsIcon: undefined, @@ -80,11 +79,9 @@ const MenuItem = (props) => { props.icon ? styles.ml3 : undefined, props.shouldShowBasicTitle ? undefined : styles.textStrong, props.interactive && props.disabled ? {...styles.disabledText, ...styles.userSelectNone} : undefined, - props.shouldShowMultilineTitle ? undefined : styles.pre, styles.ltr, props.shouldShowHeaderTitle ? styles.textHeadlineH1 : undefined, isDeleted ? styles.offlineFeedback.deleted : undefined, - props.shouldShowMultilineTitle ? styles.flexWrap : undefined, ], props.titleStyle, ); @@ -173,7 +170,7 @@ const MenuItem = (props) => { {Boolean(props.title) && ( {convertToLTR(props.title)} diff --git a/src/components/TaskHeader.js b/src/components/TaskHeader.js index 370d8e2065a8..4cf8e44254d2 100644 --- a/src/components/TaskHeader.js +++ b/src/components/TaskHeader.js @@ -117,7 +117,6 @@ function TaskHeader(props) { description={props.translate('newTaskPage.description')} onPress={() => Navigation.navigate(ROUTES.getTaskReportDescriptionRoute(props.report.reportID))} disabled={!isOpen} - shouldShowMultilineTitle /> ); diff --git a/src/components/menuItemPropTypes.js b/src/components/menuItemPropTypes.js index 566658f73082..57266831377f 100644 --- a/src/components/menuItemPropTypes.js +++ b/src/components/menuItemPropTypes.js @@ -116,9 +116,6 @@ const propTypes = { /** An icon to display under the main item */ furtherDetailsIcon: PropTypes.oneOfType([PropTypes.elementType, PropTypes.string]), - - /** Flag to indicate whether or not the title should be displayed using multiple lines. */ - shouldShowMultilineTitle: PropTypes.bool, }; export default propTypes;