Skip to content

Commit

Permalink
fix: added onBackButtonPress prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony-MK committed Jan 18, 2024
1 parent bc803bb commit d1b5b35
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/pages/ReportParticipantsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function ReportParticipantsPage(props) {
{({safeAreaPaddingBottomStyle}) => (
<FullPageNotFoundView shouldShow={_.isEmpty(props.report) || ReportUtils.isArchivedRoom(props.report)}>
<HeaderWithBackButton
onBackButtonPress={() => Navigation.goBack(ROUTES.REPORT_WITH_ID_DETAILS.getRoute(props.report.reportID))}
title={props.translate(
ReportUtils.isChatRoom(props.report) ||
ReportUtils.isPolicyExpenseChat(props.report) ||
Expand All @@ -121,12 +122,7 @@ function ReportParticipantsPage(props) {
},
]}
onSelectRow={(option) => {
Navigation.navigate(
ROUTES.PROFILE.getRoute(
option.accountID,
ROUTES.REPORT_PARTICIPANTS.getRoute(props.report.reportID)
)
);
Navigation.navigate(ROUTES.PROFILE.getRoute(option.accountID, ROUTES.REPORT_PARTICIPANTS.getRoute(props.report.reportID)));
}}
hideSectionHeaders
showTitleTooltip
Expand Down

0 comments on commit d1b5b35

Please sign in to comment.