Skip to content

Commit

Permalink
Merge pull request #1026 from oasisprotocol/csillag/dont-say-rose-on-…
Browse files Browse the repository at this point in the history
…testent

Mention the correct ticker in account summary
  • Loading branch information
csillag authored Sep 27, 2022
2 parents 6097419 + 7b1deb7 commit 8e9e4ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/app/pages/AccountPage/Features/AccountSummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 (
<>
Expand All @@ -111,7 +113,8 @@ export function AccountSummary({ address, balance, walletAddress, walletIsOpen }
i18nKey="account.summary.noWalletIsOpen"
t={t}
components={{ HomeLink: <AnchorLink to="/" /> }}
defaults="To send, receive, stake and swap ROSE tokens, <HomeLink>open your wallet!</HomeLink>"
values={{ ticker }}
defaults="To send, receive, stake and swap {{ ticker }} tokens, <HomeLink>open your wallet!</HomeLink>"
/>
</AlertBox>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"total": "Total"
},
"noTransactionFound": "No transactions found.",
"noWalletIsOpen": "To send, receive, stake and swap ROSE tokens, <HomeLink>open your wallet!</HomeLink>",
"noWalletIsOpen": "To send, receive, stake and swap {{ ticker }} tokens, <HomeLink>open your wallet!</HomeLink>",
"notYourAccount": "This is not your account.",
"yourAccount": "This is your account."
},
Expand Down

0 comments on commit 8e9e4ef

Please sign in to comment.