diff --git a/src/components/ReportActionItem/TaskPreview.js b/src/components/ReportActionItem/TaskPreview.js index 227c0f7f81ab..332be3be9ce3 100644 --- a/src/components/ReportActionItem/TaskPreview.js +++ b/src/components/ReportActionItem/TaskPreview.js @@ -62,34 +62,36 @@ function TaskPreview(props) { const htmlForTaskPreview = taskAssignee ? `@${taskAssignee} ${taskTitle}` : `${taskTitle}`; return ( - Navigation.navigate(ROUTES.getReportRoute(props.taskReportID))} - style={[styles.flexRow, styles.justifyContentBetween, styles.chatItemMessage]} - accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON} - accessibilityLabel={props.translate('newTaskPage.task')} - > - - { - if (isTaskCompleted) { - TaskUtils.reopenTask(props.taskReportID, taskTitle); - } else { - TaskUtils.completeTask(props.taskReportID, taskTitle); - } - }} - accessibilityLabel={props.translate('newTaskPage.task')} + + Navigation.navigate(ROUTES.getReportRoute(props.taskReportID))} + style={[styles.flexRow, styles.justifyContentBetween]} + accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON} + accessibilityLabel={props.translate('newTaskPage.task')} + > + + { + if (isTaskCompleted) { + TaskUtils.reopenTask(props.taskReportID, taskTitle); + } else { + TaskUtils.completeTask(props.taskReportID, taskTitle); + } + }} + accessibilityLabel={props.translate('newTaskPage.task')} + /> + + + - - - - + + ); }