Skip to content

Commit

Permalink
Merge pull request #20372 from aman-atg/aman/fix-19232-use-interactiv…
Browse files Browse the repository at this point in the history
…e-prop

Fix 19232: Use interactive prop inside Task Header
  • Loading branch information
Gonals authored Jun 12, 2023
2 parents 2d4af1c + 3978d71 commit 6035b3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ const MenuItem = (props) => {
styles.popoverMenuText,
props.icon && !_.isArray(props.icon) ? styles.ml3 : undefined,
props.shouldShowBasicTitle ? undefined : styles.textStrong,
props.shouldShowHeaderTitle ? styles.textHeadlineH1 : undefined,
props.interactive && props.disabled ? {...styles.disabledText, ...styles.userSelectNone} : undefined,
styles.pre,
styles.ltr,
props.shouldShowHeaderTitle ? styles.textHeadlineH1 : undefined,
isDeleted ? styles.offlineFeedback.deleted : undefined,
],
props.titleStyle,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TaskHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,14 @@ function TaskHeader(props) {
description={props.translate('newTaskPage.task')}
onPress={() => Navigation.navigate(ROUTES.getTaskReportTitleRoute(props.report.reportID))}
disabled={!isOpen}
interactive={isOpen}
/>
<MenuItemWithTopDescription
title={lodashGet(props.report, 'description', '')}
description={props.translate('newTaskPage.description')}
onPress={() => Navigation.navigate(ROUTES.getTaskReportDescriptionRoute(props.report.reportID))}
disabled={!isOpen}
interactive={isOpen}
/>
</View>
);
Expand Down

0 comments on commit 6035b3e

Please sign in to comment.