Skip to content

Commit 252eab6

Browse files
authored
Merge pull request #229 from RitzyDevBox/update-banner
updating warning banner to provide a link back to the legacy site
2 parents e4a14d6 + 719b4b9 commit 252eab6

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ REACT_APP_TOKEN_LIST_DEFAULT_URL="https://unpkg.com/quickswap-default-token-list
1414
REACT_APP_STAKING_LIST_DEFAULT_URL="https://unpkg.com/quickswap-default-staking-list@latest/build/quickswap-default.lpfarms.json"
1515
REACT_APP_DUAL_STAKING_LIST_DEFAULT_URL="https://unpkg.com/quickswap-default-staking-list@latest/build/quickswap-default.dualfarms.json"
1616
REACT_APP_SYRUP_LIST_DEFAULT_URL="https://unpkg.com/quickswap-default-staking-list@latest/build/quickswap-default.syrups.json"
17+
REACT_APP_LEGACY_APP_URL="https://legacy.quickswap.exchange"

public/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
"transactionsWillAppear": "Your transactions will appear here",
243243
"copied": "Copied",
244244
"showPortis": "Show Portis",
245-
"betaWarningDesc": "This site is in beta. By using this software, you understand, acknowledge and accept that Quickswap and/or the underlying software are provided “as is” and “as available” basis and without warranties or representations of any kind either expressed or implied.",
245+
"betaWarningDesc": "You're on the new productions site if you'd like to use the old site please navigate to: ",
246246
"fiatProviders": "Fiat gateway providers",
247247
"buy": "Buy",
248248
"fiatServiceDesc": "Fiat services on Quickswap are provided by third-parties. Quickswap is not associated with, responsible or liable for the performance of these third-party services. Any claims & questions should be addressed with the selected provider.",

src/components/BetaWarningBanner/BetaWarningBanner.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@ const BetaWarningBanner: React.FC = () => {
1212
{showBanner && (
1313
<Box className='warningBanner'>
1414
<AlertTriangle size={20} />
15-
<span className='text-bold'>{t('betaWarningDesc')}</span>
15+
<span className='text-bold'>
16+
{t('betaWarningDesc')}
17+
<a
18+
href={process.env.REACT_APP_LEGACY_APP_URL}
19+
target='_blank'
20+
rel='noopener noreferrer'
21+
>
22+
{process.env.REACT_APP_LEGACY_APP_URL}
23+
</a>
24+
</span>
1625
<Box onClick={() => setShowBanner(false)} className='closeBanner'>
1726
<XCircle size={20} />
1827
</Box>

src/components/styles/BetaWarningBanner.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
padding: 8px 32px 8px 16px;
1313
& span {
1414
margin-left: 8px;
15-
text-transform: uppercase;
1615
width: calc(100% - 32px);
1716
text-align: left;
1817
}

0 commit comments

Comments
 (0)