Skip to content

Commit

Permalink
migrated ReportActionItemThread to PressableWithoutFeedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Jun 13, 2023
1 parent 93957f0 commit 730bfe1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/home/report/ReportActionItemThread.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {View, Pressable, Text} from 'react-native';
import {View, Text} from 'react-native';
import PropTypes from 'prop-types';
import styles from '../../../styles/styles';
import * as Report from '../../../libs/actions/Report';
Expand All @@ -9,6 +9,7 @@ import CONST from '../../../CONST';
import avatarPropTypes from '../../../components/avatarPropTypes';
import MultipleAvatars from '../../../components/MultipleAvatars';
import compose from '../../../libs/compose';
import PressableWithoutFeedback from '../../../components/Pressable/PressableWithoutFeedback';

const propTypes = {
/** List of participant icons for the thread */
Expand Down Expand Up @@ -38,10 +39,12 @@ const ReportActionItemThread = (props) => {

return (
<View style={[styles.chatItemMessage]}>
<Pressable
<PressableWithoutFeedback
onPress={() => {
Report.navigateToAndOpenChildReport(props.childReportID);
}}
accessibilityRole="button"
accessibilityLabel={`${numberOfRepliesText} ${replyText}`}
>
<View style={[styles.flexRow, styles.alignItemsCenter, styles.mt2]}>
<MultipleAvatars
Expand All @@ -65,7 +68,7 @@ const ReportActionItemThread = (props) => {
>{`${props.translate('threads.lastReply')} ${timeStamp}`}</Text>
</View>
</View>
</Pressable>
</PressableWithoutFeedback>
</View>
);
};
Expand Down

0 comments on commit 730bfe1

Please sign in to comment.