diff --git a/suite-native/intl/src/en.ts b/suite-native/intl/src/en.ts index a6f6ab98faf..e1b89ec6bbc 100644 --- a/suite-native/intl/src/en.ts +++ b/suite-native/intl/src/en.ts @@ -567,6 +567,9 @@ export const en = { reportIssueButton: 'Report security issue', }, }, + deviceCompromisedScreen: { + title: 'Receiving is disabled', + }, }, moduleSettings: { items: { diff --git a/suite-native/module-accounts-management/package.json b/suite-native/module-accounts-management/package.json index e6115a07cc3..82c4af94021 100644 --- a/suite-native/module-accounts-management/package.json +++ b/suite-native/module-accounts-management/package.json @@ -24,6 +24,7 @@ "@suite-native/alerts": "workspace:*", "@suite-native/analytics": "workspace:*", "@suite-native/atoms": "workspace:*", + "@suite-native/device": "workspace:*", "@suite-native/device-manager": "workspace:*", "@suite-native/feature-flags": "workspace:*", "@suite-native/formatters": "workspace:*", diff --git a/suite-native/module-accounts-management/src/components/TransactionListHeader.tsx b/suite-native/module-accounts-management/src/components/TransactionListHeader.tsx index 5ffa2e55941..d9aa2a2f468 100644 --- a/suite-native/module-accounts-management/src/components/TransactionListHeader.tsx +++ b/suite-native/module-accounts-management/src/components/TransactionListHeader.tsx @@ -12,6 +12,7 @@ import { } from '@suite-common/wallet-core'; import { AccountKey, TokenAddress } from '@suite-common/wallet-types'; import { Box, Button, HStack, Text, VStack } from '@suite-native/atoms'; +import { selectHasFirmwareAuthenticityCheckHardFailed } from '@suite-native/device'; import { FeatureFlag, FeatureFlagsRootState, useFeatureFlag } from '@suite-native/feature-flags'; import { Translation } from '@suite-native/intl'; import { @@ -96,6 +97,9 @@ export const TransactionListHeader = memo( selectIsNetworkSendFlowEnabled(state, account?.symbol), ); const isPortfolioTrackerDevice = useSelector(selectIsPortfolioTrackerDevice); + const hasFirmwareAuthenticityCheckHardFailed = useSelector( + selectHasFirmwareAuthenticityCheckHardFailed, + ); if (!account) return null; @@ -125,6 +129,7 @@ export const TransactionListHeader = memo( const isSendButtonDisplayed = isDeviceConnectEnabled && isNetworkSendFlowEnabled && !isPortfolioTrackerDevice; + const isReceiveButtonDisplayed = !hasFirmwareAuthenticityCheckHardFailed; return ( <> @@ -135,15 +140,17 @@ export const TransactionListHeader = memo( /> {accountHasTransactions && ( - - - + {isReceiveButtonDisplayed && ( + + + + )} {isSendButtonDisplayed && ( + {showReceiveButton && ( + + )} ); }; diff --git a/suite-native/transactions/tsconfig.json b/suite-native/transactions/tsconfig.json index b76f4993e1a..76d282a1c79 100644 --- a/suite-native/transactions/tsconfig.json +++ b/suite-native/transactions/tsconfig.json @@ -28,6 +28,7 @@ }, { "path": "../analytics" }, { "path": "../atoms" }, + { "path": "../device" }, { "path": "../formatters" }, { "path": "../helpers" }, { "path": "../icons" }, diff --git a/yarn.lock b/yarn.lock index 474fa68481a..fbb31827581 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10599,6 +10599,7 @@ __metadata: "@suite-native/alerts": "workspace:*" "@suite-native/analytics": "workspace:*" "@suite-native/atoms": "workspace:*" + "@suite-native/device": "workspace:*" "@suite-native/device-manager": "workspace:*" "@suite-native/feature-flags": "workspace:*" "@suite-native/formatters": "workspace:*" @@ -11271,6 +11272,7 @@ __metadata: "@suite-common/wallet-utils": "workspace:*" "@suite-native/analytics": "workspace:*" "@suite-native/atoms": "workspace:*" + "@suite-native/device": "workspace:*" "@suite-native/formatters": "workspace:*" "@suite-native/helpers": "workspace:*" "@suite-native/icons": "workspace:*"