From 529d4a7918a82896ba6d0532fd05c3b495433065 Mon Sep 17 00:00:00 2001 From: Robert Kozik Date: Tue, 13 Jun 2023 12:02:54 +0200 Subject: [PATCH] migrate ReportPreview to PressableWithoutFeedback --- src/components/ReportActionItem/ReportPreview.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/ReportActionItem/ReportPreview.js b/src/components/ReportActionItem/ReportPreview.js index e7ba7fde70d5..422a954cc277 100644 --- a/src/components/ReportActionItem/ReportPreview.js +++ b/src/components/ReportActionItem/ReportPreview.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 lodashGet from 'lodash/get'; @@ -25,6 +25,7 @@ import themeColors from '../../styles/themes/default'; import getButtonState from '../../libs/getButtonState'; import * as IOU from '../../libs/actions/IOU'; import refPropTypes from '../refPropTypes'; +import PressableWithoutFeedback from '../Pressable/PressableWithoutFeedback'; const propTypes = { /** All the data of the action */ @@ -103,7 +104,7 @@ const ReportPreview = (props) => { return ( {_.map(props.action.message, (message, index) => ( - { Navigation.navigate(ROUTES.getReportRoute(props.iouReportID)); @@ -112,7 +113,8 @@ const ReportPreview = (props) => { onPressOut={() => ControlSelection.unblock()} onLongPress={(event) => showContextMenuForReport(event, props.contextMenuAnchor, props.chatReportID, props.action, props.checkIfContextMenuActive)} style={[styles.flexRow, styles.justifyContentBetween]} - focusable + accessibilityRole="button" + accessibilityLabel={props.translate('iou.viewDetails')} > {props.iouReport.hasOutstandingIOU ? ( @@ -140,7 +142,7 @@ const ReportPreview = (props) => { src={Expensicons.ArrowRight} fill={StyleUtils.getIconFillColor(getButtonState(props.isHovered))} /> - + ))} {isCurrentUserManager && !ReportUtils.isSettled(props.iouReport.reportID) && (