From b65a1c6a86043ef39bcaaf133b2cef29f16f2a29 Mon Sep 17 00:00:00 2001 From: Robert Kozik Date: Tue, 13 Jun 2023 11:43:32 +0200 Subject: [PATCH] migrate TaskPReview to PressableWithoutFeedback --- src/components/ReportActionItem/TaskPreview.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/ReportActionItem/TaskPreview.js b/src/components/ReportActionItem/TaskPreview.js index 3f66c211d476..3ce18d428f24 100644 --- a/src/components/ReportActionItem/TaskPreview.js +++ b/src/components/ReportActionItem/TaskPreview.js @@ -1,5 +1,5 @@ import React from 'react'; -import {View, Pressable} from 'react-native'; +import {View} from 'react-native'; import PropTypes from 'prop-types'; import {withOnyx} from 'react-native-onyx'; import compose from '../../libs/compose'; @@ -17,6 +17,7 @@ import ROUTES from '../../ROUTES'; import reportActionPropTypes from '../../pages/home/report/reportActionPropTypes'; import * as TaskUtils from '../../libs/actions/Task'; import RenderHTML from '../RenderHTML'; +import PressableWithoutFeedback from '../Pressable/PressableWithoutFeedback'; const propTypes = { /** The ID of the associated taskReport */ @@ -61,9 +62,11 @@ const TaskPreview = (props) => { const htmlForTaskPreview = taskAssignee ? `@${taskAssignee} ${taskTitle}` : `${taskTitle}`; return ( - Navigation.navigate(ROUTES.getReportRoute(props.taskReportID))} style={[styles.flexRow, styles.justifyContentBetween]} + accessibilityRole="button" + accessibilityLabel={props.translate('newTaskPage.task')} > { src={Expensicons.ArrowRight} fill={StyleUtils.getIconFillColor(getButtonState(props.isHovered))} /> - + ); };