File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ import SkeletonViewContentLoader from './SkeletonViewContentLoader';
14
14
15
15
type ReportHeaderSkeletonViewProps = {
16
16
shouldAnimate ?: boolean ;
17
+ onBackButtonPress ?: ( ) => void ;
17
18
} ;
18
19
19
- function ReportHeaderSkeletonView ( { shouldAnimate = true } : ReportHeaderSkeletonViewProps ) {
20
+ function ReportHeaderSkeletonView ( { shouldAnimate = true , onBackButtonPress = ( ) => { } } : ReportHeaderSkeletonViewProps ) {
20
21
const theme = useTheme ( ) ;
21
22
const styles = useThemeStyles ( ) ;
22
23
const { translate} = useLocalize ( ) ;
@@ -27,7 +28,7 @@ function ReportHeaderSkeletonView({shouldAnimate = true}: ReportHeaderSkeletonVi
27
28
< View style = { [ styles . appContentHeaderTitle , ! isSmallScreenWidth && styles . pl5 ] } >
28
29
{ isSmallScreenWidth && (
29
30
< PressableWithFeedback
30
- onPress = { ( ) => { } }
31
+ onPress = { onBackButtonPress }
31
32
style = { [ styles . LHNToggle ] }
32
33
role = { CONST . ACCESSIBILITY_ROLE . BUTTON }
33
34
accessibilityLabel = { translate ( 'common.back' ) }
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ function HeaderView(props) {
197
197
>
198
198
< View style = { [ styles . appContentHeaderTitle , ! isSmallScreenWidth && ! isLoading && styles . pl5 ] } >
199
199
{ isLoading ? (
200
- < ReportHeaderSkeletonView />
200
+ < ReportHeaderSkeletonView onBackButtonPress = { props . onNavigationMenuButtonClicked } />
201
201
) : (
202
202
< >
203
203
{ isSmallScreenWidth && (
You can’t perform that action at this time.
0 commit comments