@@ -13,13 +13,13 @@ import useTheme from '@hooks/useTheme';
13
13
import useThemeStyles from '@hooks/useThemeStyles' ;
14
14
import { navigateToConciergeChatAndDeleteReport } from '@libs/actions/Report' ;
15
15
import DebugUtils from '@libs/DebugUtils' ;
16
- import * as DeviceCapabilities from '@libs/DeviceCapabilities' ;
16
+ import { canUseTouchScreen } from '@libs/DeviceCapabilities' ;
17
17
import type { DebugTabNavigatorRoutes } from '@libs/Navigation/DebugTabNavigator' ;
18
18
import DebugTabNavigator from '@libs/Navigation/DebugTabNavigator' ;
19
19
import Navigation from '@libs/Navigation/Navigation' ;
20
20
import type { PlatformStackScreenProps } from '@libs/Navigation/PlatformStackNavigation/types' ;
21
21
import type { DebugParamList } from '@libs/Navigation/types' ;
22
- import * as ReportUtils from '@libs/ReportUtils' ;
22
+ import { shouldDisplayViolationsRBRInLHN , isReportOwner , hasReportViolations } from '@libs/ReportUtils' ;
23
23
import DebugDetails from '@pages/Debug/DebugDetails' ;
24
24
import DebugJSON from '@pages/Debug/DebugJSON' ;
25
25
import NotFoundPage from '@pages/ErrorPage/NotFoundPage' ;
@@ -62,8 +62,8 @@ function DebugReportPage({
62
62
return [ ] ;
63
63
}
64
64
65
- const shouldDisplayViolations = ReportUtils . shouldDisplayViolationsRBRInLHN ( report , transactionViolations ) ;
66
- const shouldDisplayReportViolations = ReportUtils . isReportOwner ( report ) && ReportUtils . hasReportViolations ( reportID ) ;
65
+ const shouldDisplayViolations = shouldDisplayViolationsRBRInLHN ( report , transactionViolations ) ;
66
+ const shouldDisplayReportViolations = isReportOwner ( report ) && hasReportViolations ( reportID ) ;
67
67
const hasViolations = ! ! shouldDisplayViolations || shouldDisplayReportViolations ;
68
68
const { reason : reasonGBR , reportAction : reportActionGBR } = DebugUtils . getReasonAndReportActionForGBRInLHNRow ( report ) ?? { } ;
69
69
const { reason : reasonRBR , reportAction : reportActionRBR } = DebugUtils . getReasonAndReportActionForRBRInLHNRow ( report , reportActions , hasViolations , isReportArchived ) ?? { } ;
@@ -215,7 +215,7 @@ function DebugReportPage({
215
215
< ScreenWrapper
216
216
includeSafeAreaPaddingBottom = { false }
217
217
shouldEnableKeyboardAvoidingView = { false }
218
- shouldEnableMinHeight = { DeviceCapabilities . canUseTouchScreen ( ) }
218
+ shouldEnableMinHeight = { canUseTouchScreen ( ) }
219
219
testID = { DebugReportPage . displayName }
220
220
>
221
221
{ ( { safeAreaPaddingBottomStyle} ) => (
0 commit comments