From 53ab531fe9baa2a702e4bcc4ea0a279001986e0f Mon Sep 17 00:00:00 2001 From: Inokentii Mazhara Date: Wed, 29 Nov 2023 11:10:38 +0200 Subject: [PATCH] TW-1176 Change some related to ads texts --- public/_locales/en/messages.json | 21 +++++++++++-------- .../partners-promotion-settings.tsx | 21 +++++++++---------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 9fdcd5892e..f36cc9d526 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -1975,7 +1975,7 @@ "message": "Confirm the action" }, "closePartnersPromotion": { - "message": "Are you sure you want to turn off all ads?" + "message": "Are you sure you want to disable all ads?" }, "domainDoesntResolveToAddress": { "message": "Domain \"$value$\" doesn't resolve to an address", @@ -2421,7 +2421,7 @@ "message": "Are you sure you want to delete this contact?" }, "closePartnersPromoConfirm": { - "message": "Pay attention: you can receive cashback in USDt tokens for enabling advertisement in our wallet. If you turned off ADS, you can always activate it in the settings." + "message": "Pay attention: you can receive rewards in TKEY tokens for viewing ads in our wallet. If you disabled Ads, you can always activate it in the settings." }, "enablePartnersPromotionConfirm": { "message": "Support the development team and earn tokens by viewing ads inside the wallet." @@ -2614,14 +2614,17 @@ "partnersPromoSettings": { "message": "Advertising" }, - "cashBack": { - "message": "cash back" + "rewards": { + "message": "rewards", + "description": "Part of partnersPromoDescription phrase" }, - "partnersPromoDescriptionP1": { - "message": "Here you can configure displaying of ads in Temple wallet. Remember, you get" - }, - "partnersPromoDescriptionP2": { - "message": "at Temple Keys for viewing ads" + "partnersPromoDescription": { + "message": "Here you can configure displaying of ads in Temple wallet. Remember, you get $rewards$ at TKEY tokens for viewing ads.", + "placeholders": { + "rewards": { + "content": "$1" + } + } }, "totalEquityValue": { "message": "Total Equity Value" diff --git a/src/app/templates/SettingsGeneral/Components/partners-promotion-settings.tsx b/src/app/templates/SettingsGeneral/Components/partners-promotion-settings.tsx index e96f8d1b6b..3dcc7f029d 100644 --- a/src/app/templates/SettingsGeneral/Components/partners-promotion-settings.tsx +++ b/src/app/templates/SettingsGeneral/Components/partners-promotion-settings.tsx @@ -5,11 +5,11 @@ import { useDispatch } from 'react-redux'; import { FormCheckbox } from 'app/atoms'; import { togglePartnersPromotionAction } from 'app/store/partners-promotion/actions'; import { useShouldShowPartnersPromoSelector } from 'app/store/partners-promotion/selectors'; +import { setAdsBannerVisibilityAction } from 'app/store/settings/actions'; +import { useIsEnabledAdsBannerSelector } from 'app/store/settings/selectors'; import { T, t } from 'lib/i18n'; import { useConfirm } from 'lib/ui/dialog'; -import { setAdsBannerVisibilityAction } from '../../../store/settings/actions'; -import { useIsEnabledAdsBannerSelector } from '../../../store/settings/selectors'; import { SettingsGeneralSelectors } from '../selectors'; export const PartnersPromotionSettings: FC = () => { @@ -63,15 +63,14 @@ export const PartnersPromotionSettings: FC = () => { - - - - - - - - - + + + + ]} + />