Skip to content

Commit

Permalink
PR intended changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhairyasenjaliya committed Jul 5, 2023
1 parent 7e908b1 commit f66f6d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const defaultProps = {
hoverAndPressStyle: [],
furtherDetails: '',
furtherDetailsIcon: undefined,
numberOfLinesTitle: 1,
};

function MenuItem(props) {
Expand All @@ -79,8 +80,8 @@ function MenuItem(props) {
props.icon && !_.isArray(props.icon) ? styles.ml3 : undefined,
props.shouldShowBasicTitle ? undefined : styles.textStrong,
props.shouldShowHeaderTitle ? styles.textHeadlineH1 : undefined,
props.numberOfLinesTitle > 1 ? styles.preWrap : styles.pre,
props.interactive && props.disabled ? {...styles.userSelectNone} : undefined,
styles.pre,
styles.ltr,
isDeleted ? styles.offlineFeedback.deleted : undefined,
],
Expand Down Expand Up @@ -193,7 +194,7 @@ function MenuItem(props) {
{Boolean(props.title) && (
<Text
style={titleTextStyle}
numberOfLines={1}
numberOfLines={props.numberOfLinesTitle}
>
{convertToLTR(props.title)}
</Text>
Expand Down
1 change: 1 addition & 0 deletions src/pages/tasks/NewTaskPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ function NewTaskPage(props) {
title={props.task.description || ''}
onPress={() => Navigation.navigate(ROUTES.NEW_TASK_DESCRIPTION)}
shouldShowRightIcon
numberOfLinesTitle={2}
/>
<MenuItem
label={assignee.displayName ? props.translate('newTaskPage.assignee') : ''}
Expand Down

0 comments on commit f66f6d3

Please sign in to comment.