From 7b1deb766b4a4c091b712118a6c9883ee2253fab Mon Sep 17 00:00:00 2001 From: Kristof Csillag Date: Sat, 24 Sep 2022 02:25:55 +0200 Subject: [PATCH] Mention the correct ticker in account summary On Testnet, say: > To send, receive, stake and swap TEST tokens, open your wallet! --- src/app/pages/AccountPage/Features/AccountSummary/index.tsx | 5 ++++- src/locales/en/translation.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/pages/AccountPage/Features/AccountSummary/index.tsx b/src/app/pages/AccountPage/Features/AccountSummary/index.tsx index ba219cdb8b..10e2b18277 100644 --- a/src/app/pages/AccountPage/Features/AccountSummary/index.tsx +++ b/src/app/pages/AccountPage/Features/AccountSummary/index.tsx @@ -12,6 +12,7 @@ import { normalizeColor } from 'grommet/utils' import { selectTheme } from 'styles/theme/slice/selectors' import { BalanceDetails } from '../../../../state/account/types' +import { selectTicker } from '../../../../state/network/selectors' const StyledDescriptionList = styled.dl` display: flex; @@ -93,6 +94,7 @@ export function AccountSummary({ address, balance, walletAddress, walletIsOpen } const { t } = useTranslation() const theme = useSelector(selectTheme) const isMobile = React.useContext(ResponsiveContext) === 'small' + const ticker = useSelector(selectTicker) return ( <> @@ -111,7 +113,8 @@ export function AccountSummary({ address, balance, walletAddress, walletIsOpen } i18nKey="account.summary.noWalletIsOpen" t={t} components={{ HomeLink: }} - defaults="To send, receive, stake and swap ROSE tokens, open your wallet!" + values={{ ticker }} + defaults="To send, receive, stake and swap {{ ticker }} tokens, open your wallet!" /> )} diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 9236251cec..c7af45d1d7 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -43,7 +43,7 @@ "total": "Total" }, "noTransactionFound": "No transactions found.", - "noWalletIsOpen": "To send, receive, stake and swap ROSE tokens, open your wallet!", + "noWalletIsOpen": "To send, receive, stake and swap {{ ticker }} tokens, open your wallet!", "notYourAccount": "This is not your account.", "yourAccount": "This is your account." },