@@ -7,13 +7,13 @@ import ScreenWrapper from '@components/ScreenWrapper';
7
7
import useLocalize from '@hooks/useLocalize' ;
8
8
import useThemeStyles from '@hooks/useThemeStyles' ;
9
9
import DebugUtils from '@libs/DebugUtils' ;
10
- import * as DeviceCapabilities from '@libs/DeviceCapabilities' ;
10
+ import { canUseTouchScreen } from '@libs/DeviceCapabilities' ;
11
11
import type { DebugTabNavigatorRoutes } from '@libs/Navigation/DebugTabNavigator' ;
12
12
import DebugTabNavigator from '@libs/Navigation/DebugTabNavigator' ;
13
13
import Navigation from '@libs/Navigation/Navigation' ;
14
14
import type { PlatformStackScreenProps } from '@libs/Navigation/PlatformStackNavigation/types' ;
15
15
import type { DebugParamList } from '@libs/Navigation/types' ;
16
- import * as ReportActionsUtils from '@libs/ReportActionsUtils' ;
16
+ import { getLinkedTransactionID } from '@libs/ReportActionsUtils' ;
17
17
import DebugDetails from '@pages/Debug/DebugDetails' ;
18
18
import DebugJSON from '@pages/Debug/DebugJSON' ;
19
19
import Debug from '@userActions/Debug' ;
@@ -36,7 +36,7 @@ function DebugReportActionPage({
36
36
canEvict : false ,
37
37
selector : ( reportActions ) => reportActions ?. [ reportActionID ] ,
38
38
} ) ;
39
- const transactionID = ReportActionsUtils . getLinkedTransactionID ( reportAction ) ;
39
+ const transactionID = getLinkedTransactionID ( reportAction ) ;
40
40
41
41
const DebugDetailsTab = useCallback (
42
42
( ) => (
@@ -73,7 +73,15 @@ function DebugReportActionPage({
73
73
74
74
const DebugJSONTab = useCallback ( ( ) => < DebugJSON data = { reportAction ?? { } } /> , [ reportAction ] ) ;
75
75
76
- const DebugReportActionPreviewTab = useCallback ( ( ) => < DebugReportActionPreview reportAction = { reportAction } /> , [ reportAction ] ) ;
76
+ const DebugReportActionPreviewTab = useCallback (
77
+ ( ) => (
78
+ < DebugReportActionPreview
79
+ reportAction = { reportAction }
80
+ reportID = { reportID }
81
+ />
82
+ ) ,
83
+ [ reportAction , reportID ] ,
84
+ ) ;
77
85
78
86
const routes = useMemo < DebugTabNavigatorRoutes > (
79
87
( ) => [
@@ -88,7 +96,7 @@ function DebugReportActionPage({
88
96
< ScreenWrapper
89
97
includeSafeAreaPaddingBottom = { false }
90
98
shouldEnableKeyboardAvoidingView = { false }
91
- shouldEnableMinHeight = { DeviceCapabilities . canUseTouchScreen ( ) }
99
+ shouldEnableMinHeight = { canUseTouchScreen ( ) }
92
100
testID = { DebugReportActionPage . displayName }
93
101
>
94
102
{ ( { safeAreaPaddingBottomStyle} ) => (
0 commit comments