Skip to content

Commit

Permalink
chore: Update wording for 451 (#10679)
Browse files Browse the repository at this point in the history
<!--
Before opening a pull request, please read the [contributing
guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md)
first
-->


<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to update the `451.tsx` page in the web app to
display a message for users in unsupported regions. It includes adding a
`LogoIcon` and new text messages.

### Detailed summary
- Added `LogoIcon` component
- Updated text messages for unsupported regions
- Added new translations for the updated text messages

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
  • Loading branch information
chefjackson authored Sep 13, 2024
1 parent ca0b5ab commit 405f386
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 9 additions & 2 deletions apps/web/src/pages/451.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useTranslation } from '@pancakeswap/localization'
import { Text } from '@pancakeswap/uikit'
import { Text, LogoIcon } from '@pancakeswap/uikit'
import { styled } from 'styled-components'

const StyledNotFound = styled.div`
Expand All @@ -15,7 +15,14 @@ const NotSupport = () => {

return (
<StyledNotFound>
<Text mb="16px">{t('Unavailable for legal reasons')}</Text>
<LogoIcon width="5rem" mb="1rem" />
<Text fontSize="1.5rem" mb="0.5rem">
{t('Service Unavailable in Your Region')}
</Text>
<Text fontSize="1rem">
{t('Due to regional regulatory requirements. We are unable to provide service for your region.')}
</Text>
<Text fontSize="1rem">{t('Please access from another location or check your settings.')}</Text>
</StyledNotFound>
)
}
Expand Down
3 changes: 3 additions & 0 deletions packages/localization/src/config/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -3500,5 +3500,8 @@
"Predict BNB price every 5 minutes to win a share of the round’s prize pool": "Predict BNB price every 5 minutes to win a share of the round’s prize pool",
"Predict BNB Price and Celebrate Our 4th Birthday with $4,444 rewards": "Predict BNB Price and Celebrate Our 4th Birthday with $4,444 rewards",
"Play Now on Telegram": "Play Now on Telegram",
"Service Unavailable in Your Region": "Service Unavailable in Your Region",
"Due to regional regulatory requirements. We are unable to provide service for your region.": "Due to regional regulatory requirements. We are unable to provide service for your region.",
"Please access from another location or check your settings.": "Please access from another location or check your settings.",
"Introducing PancakeSwap Prediction Telegram Bot": "Introducing PancakeSwap Prediction Telegram Bot"
}

0 comments on commit 405f386

Please sign in to comment.