From ee100665daacf8c875e93164b755d295bd113cc5 Mon Sep 17 00:00:00 2001 From: Jyoti Puri Date: Fri, 5 Jul 2024 11:24:58 +0530 Subject: [PATCH] fix: copy changes in blockaid settings (#10233) --- .../Sections/BlockaidSettings.tsx | 14 ++++++++++++-- .../BlockaidSettings.test.tsx.snap | 19 ++++++++++++++++++- .../SecuritySettings.test.tsx.snap | 19 ++++++++++++++++++- locales/languages/de.json | 1 - locales/languages/el.json | 1 - locales/languages/en.json | 2 +- locales/languages/es.json | 1 - locales/languages/fr.json | 1 - locales/languages/hi.json | 1 - locales/languages/id.json | 1 - locales/languages/ja.json | 1 - locales/languages/ko.json | 1 - locales/languages/pt.json | 1 - locales/languages/ru.json | 1 - locales/languages/tl.json | 1 - locales/languages/tr.json | 1 - locales/languages/vi.json | 1 - locales/languages/zh.json | 1 - 18 files changed, 49 insertions(+), 19 deletions(-) diff --git a/app/components/Views/Settings/SecuritySettings/Sections/BlockaidSettings.tsx b/app/components/Views/Settings/SecuritySettings/Sections/BlockaidSettings.tsx index 18533218de3..91837042373 100644 --- a/app/components/Views/Settings/SecuritySettings/Sections/BlockaidSettings.tsx +++ b/app/components/Views/Settings/SecuritySettings/Sections/BlockaidSettings.tsx @@ -5,7 +5,7 @@ import Text, { } from '../../../../../component-library/components/Texts/Text'; import { useTheme } from '../../../../../util/theme'; import { strings } from '../../../../../../locales/i18n'; -import { Switch, View } from 'react-native'; +import { Linking, Switch, View } from 'react-native'; import { useSelector } from 'react-redux'; import { selectIsSecurityAlertsEnabled } from '../../../../../selectors/preferencesController'; import Engine from '../../../../../core/Engine'; @@ -59,7 +59,17 @@ const BlockaidSettings = () => { variant={TextVariant.BodyMD} style={styles.desc} > - {strings('app_settings.blockaid_desc')} + {strings('app_settings.blockaid_desc')}{' '} + + Linking.openURL( + 'https://support.metamask.io/privacy-and-security/how-to-turn-on-security-alerts/', + ) + } + > + {strings('app_settings.learn_more')} + ); diff --git a/app/components/Views/Settings/SecuritySettings/Sections/__snapshots__/BlockaidSettings.test.tsx.snap b/app/components/Views/Settings/SecuritySettings/Sections/__snapshots__/BlockaidSettings.test.tsx.snap index 5b41d93ee6b..a9c84e0a970 100644 --- a/app/components/Views/Settings/SecuritySettings/Sections/__snapshots__/BlockaidSettings.test.tsx.snap +++ b/app/components/Views/Settings/SecuritySettings/Sections/__snapshots__/BlockaidSettings.test.tsx.snap @@ -71,7 +71,24 @@ exports[`BlockaidSettings should render correctly 1`] = ` } } > - Privacy preserving - no data is shared with third parties. Available on Arbitrum, Avalanche, BNB chain, Ethereum Mainnet, Optimism, Polygon, Sepolia and Base. + This feature alerts you to malicious activity by actively reviewing transaction and signature requests. + + + Learn more. + , ] `; diff --git a/app/components/Views/Settings/SecuritySettings/__snapshots__/SecuritySettings.test.tsx.snap b/app/components/Views/Settings/SecuritySettings/__snapshots__/SecuritySettings.test.tsx.snap index 6d4db4efe3e..6c52b4cb088 100644 --- a/app/components/Views/Settings/SecuritySettings/__snapshots__/SecuritySettings.test.tsx.snap +++ b/app/components/Views/Settings/SecuritySettings/__snapshots__/SecuritySettings.test.tsx.snap @@ -703,7 +703,24 @@ exports[`SecuritySettings should render correctly 1`] = ` } } > - Privacy preserving - no data is shared with third parties. Available on Arbitrum, Avalanche, BNB chain, Ethereum Mainnet, Optimism, Polygon, Sepolia and Base. + This feature alerts you to malicious activity by actively reviewing transaction and signature requests. + + + Learn more. +