Skip to content

Commit 405f386

Browse files
authored
chore: Update wording for 451 (#10679)
<!-- 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 -->
1 parent ca0b5ab commit 405f386

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Diff for: apps/web/src/pages/451.tsx

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useTranslation } from '@pancakeswap/localization'
2-
import { Text } from '@pancakeswap/uikit'
2+
import { Text, LogoIcon } from '@pancakeswap/uikit'
33
import { styled } from 'styled-components'
44

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

1616
return (
1717
<StyledNotFound>
18-
<Text mb="16px">{t('Unavailable for legal reasons')}</Text>
18+
<LogoIcon width="5rem" mb="1rem" />
19+
<Text fontSize="1.5rem" mb="0.5rem">
20+
{t('Service Unavailable in Your Region')}
21+
</Text>
22+
<Text fontSize="1rem">
23+
{t('Due to regional regulatory requirements. We are unable to provide service for your region.')}
24+
</Text>
25+
<Text fontSize="1rem">{t('Please access from another location or check your settings.')}</Text>
1926
</StyledNotFound>
2027
)
2128
}

Diff for: packages/localization/src/config/translations.json

+3
Original file line numberDiff line numberDiff line change
@@ -3500,5 +3500,8 @@
35003500
"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",
35013501
"Predict BNB Price and Celebrate Our 4th Birthday with $4,444 rewards": "Predict BNB Price and Celebrate Our 4th Birthday with $4,444 rewards",
35023502
"Play Now on Telegram": "Play Now on Telegram",
3503+
"Service Unavailable in Your Region": "Service Unavailable in Your Region",
3504+
"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.",
3505+
"Please access from another location or check your settings.": "Please access from another location or check your settings.",
35033506
"Introducing PancakeSwap Prediction Telegram Bot": "Introducing PancakeSwap Prediction Telegram Bot"
35043507
}

0 commit comments

Comments
 (0)