Skip to content

Commit d8f3268

Browse files
authored
Merge pull request #32592 from ikevin127/fix/32408
IOU - Back button unresponsive on touches on IOU details page in offline
2 parents cf918b6 + e7ef4bd commit d8f3268

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/ReportHeaderSkeletonView.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ import SkeletonViewContentLoader from './SkeletonViewContentLoader';
1414

1515
type ReportHeaderSkeletonViewProps = {
1616
shouldAnimate?: boolean;
17+
onBackButtonPress?: () => void;
1718
};
1819

19-
function ReportHeaderSkeletonView({shouldAnimate = true}: ReportHeaderSkeletonViewProps) {
20+
function ReportHeaderSkeletonView({shouldAnimate = true, onBackButtonPress = () => {}}: ReportHeaderSkeletonViewProps) {
2021
const theme = useTheme();
2122
const styles = useThemeStyles();
2223
const {translate} = useLocalize();
@@ -27,7 +28,7 @@ function ReportHeaderSkeletonView({shouldAnimate = true}: ReportHeaderSkeletonVi
2728
<View style={[styles.appContentHeaderTitle, !isSmallScreenWidth && styles.pl5]}>
2829
{isSmallScreenWidth && (
2930
<PressableWithFeedback
30-
onPress={() => {}}
31+
onPress={onBackButtonPress}
3132
style={[styles.LHNToggle]}
3233
role={CONST.ACCESSIBILITY_ROLE.BUTTON}
3334
accessibilityLabel={translate('common.back')}

src/pages/home/HeaderView.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function HeaderView(props) {
197197
>
198198
<View style={[styles.appContentHeaderTitle, !isSmallScreenWidth && !isLoading && styles.pl5]}>
199199
{isLoading ? (
200-
<ReportHeaderSkeletonView />
200+
<ReportHeaderSkeletonView onBackButtonPress={props.onNavigationMenuButtonClicked} />
201201
) : (
202202
<>
203203
{isSmallScreenWidth && (

0 commit comments

Comments
 (0)