Skip to content

Commit

Permalink
Merge pull request #20664 from Skalakid/20605-migrate-ReportDetailsPage
Browse files Browse the repository at this point in the history
20605 - migrated ReportDetailsPage to PressableWithoutFeedback
  • Loading branch information
luacmartins authored Jun 13, 2023
2 parents 3486c2a + dfa5107 commit c9573e7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/ReportDetailsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, {useMemo} from 'react';
import PropTypes from 'prop-types';
import {withOnyx} from 'react-native-onyx';
import _ from 'underscore';
import {View, ScrollView, Pressable} from 'react-native';
import {View, ScrollView} from 'react-native';
import lodashGet from 'lodash/get';
import RoomHeaderAvatars from '../components/RoomHeaderAvatars';
import compose from '../libs/compose';
Expand All @@ -27,6 +27,7 @@ import CONST from '../CONST';
import reportPropTypes from './reportPropTypes';
import withReportOrNotFound from './home/report/withReportOrNotFound';
import FullPageNotFoundView from '../components/BlockingViews/FullPageNotFoundView';
import PressableWithoutFeedback from '../components/Pressable/PressableWithoutFeedback';

const propTypes = {
...withLocalizePropTypes,
Expand Down Expand Up @@ -155,13 +156,15 @@ const ReportDetailsPage = (props) => {
/>
</View>
{isPolicyAdmin ? (
<Pressable
<PressableWithoutFeedback
accessibilityRole="button"
accessibilityLabel={chatRoomSubtitle}
onPress={() => {
Navigation.navigate(ROUTES.getWorkspaceInitialRoute(props.report.policyID));
}}
>
{chatRoomSubtitleText}
</Pressable>
</PressableWithoutFeedback>
) : (
chatRoomSubtitleText
)}
Expand Down

0 comments on commit c9573e7

Please sign in to comment.