Skip to content

Commit

Permalink
Merge pull request #47 from totop716/issue/fix-archive-link
Browse files Browse the repository at this point in the history
replace with legacy links
  • Loading branch information
sameepsi authored Aug 2, 2022
2 parents b9ab20a + e9006c7 commit 1d6e39c
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/Header/URLWarning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ export default function URLWarning() {
<PhishAlert isActive={showURLWarning}>
<div style={{ display: 'flex' }}>
<AlertTriangle style={{ marginRight: 6 }} size={12} /> Make sure the URL is
<code style={{ padding: '0 4px', display: 'inline', fontWeight: 'bold' }}>quickswap.exchange</code>
<code style={{ padding: '0 4px', display: 'inline', fontWeight: 'bold' }}>legacy.quickswap.exchange</code>
</div>
<StyledClose size={12} onClick={toggleURLWarning} />
</PhishAlert>
) : window.location.hostname === 'quickswap.exchange' ? (
) : window.location.hostname === 'legacy.quickswap.exchange' ? (
<PhishAlert isActive={showURLWarning}>
<div style={{ display: 'flex' }}>
<AlertTriangle style={{ marginRight: 6 }} size={12} /> Always make sure the URL is
Expand Down
2 changes: 1 addition & 1 deletion src/pages/DualEarn/Old.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function Old() {
</RowBetween>{' '}
<RowBetween>

<ExternalLink id={`old-pools-link`} href={'https://quickswap.exchange/#/quick'} style={{ width: '20%' }}>
<ExternalLink id={`old-pools-link`} href={'https://legacy.quickswap.exchange/#/quick'} style={{ width: '20%' }}>

<ButtonPrimary padding="8px" borderRadius="8px">
New Pools
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Earn/Old.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function Old() {
</RowBetween>{' '}
<RowBetween>

<ExternalLink id={`old-pools-link`} href={'https://quickswap.exchange/#/quick'} style={{ width: '20%' }}>
<ExternalLink id={`old-pools-link`} href={'https://legacy.quickswap.exchange/#/quick'} style={{ width: '20%' }}>

<ButtonPrimary padding="8px" borderRadius="8px">
New Pools
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Earn/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export default function Earn() {

</RowBetween>{' '}
<RowBetween>
<ExternalLink id={`old-pools-link`} href={'https://quickswap.exchange/#/archive'} style={{width: isMobile?'50%':'25%'}}>
<ExternalLink id={`old-pools-link`} href={'https://legacy.quickswap.exchange/#/archive'} style={{width: isMobile?'50%':'25%'}}>

<ButtonPrimary padding="8px" borderRadius="8px">
Archived Pools
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Syrup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export default function Syrup() {

</RowBetween>{' '}
{/**<RowBetween>
<ExternalLink id={`old-pools-link`} href={'https://quickswap.exchange/#/archive'} style={{width: isMobile?'50%':'25%'}}>
<ExternalLink id={`old-pools-link`} href={'https://legacy.quickswap.exchange/#/archive'} style={{width: isMobile?'50%':'25%'}}>
<ButtonPrimary padding="8px" borderRadius="8px">
Archived Pools
Expand Down
2 changes: 1 addition & 1 deletion src/service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const fileExtensionRegexp = new RegExp('/[^/?]+\\.[^/]+$')
registerRoute(({ request, url }: { request: Request; url: URL }) => {
// If this isn't app.uniswap.org, skip. IPFS gateways may not have domain
// separation, so they cannot use App Shell-style routing.
if (url.hostname !== 'quickswap.exchange') {
if (url.hostname !== 'legacy.quickswap.exchange') {
return false
}

Expand Down
9 changes: 7 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7499,6 +7499,11 @@ dayjs@^1.10.4:
resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.1.tgz#90b33a3dda3417258d48ad2771b415def6545eb0"
integrity sha512-ER7EjqVAMkRRsxNCC5YqJ9d9VQYuWdGt7aiH2qA5R5wt8ZmWaP2dLUSIK6y/kVzLMlmh1Tvu5xUf4M/wdGJ5KA==

dayjs@^1.11.0:
version "1.11.4"
resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.4.tgz#3b3c10ca378140d8917e06ebc13a4922af4f433e"
integrity sha512-Zj/lPM5hOvQ1Bf7uAvewDaUcsJoI6JmNqmHhHl3nyumwe0XHwt8sWdOVAPACJzCebL8gQCi+K49w7iKWnGwX9g==

[email protected], debug@^2.2.0, debug@^2.3.3, debug@^2.6.0, debug@^2.6.8, debug@^2.6.9:
version "2.6.9"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
Expand Down Expand Up @@ -14202,9 +14207,9 @@ ndjson@^1.5.0:
split2 "^2.1.0"
through2 "^2.0.3"

"neat-frame@git+https://github.com/agentofuser/neat-frame.git#wrap-ansi-options":
"neat-frame@https://github.com/agentofuser/neat-frame#wrap-ansi-options":
version "1.0.2"
resolved "git+https://github.com/agentofuser/neat-frame.git#b244ca11078bd35f63b2d7cb22d5e4b5c12ae2aa"
resolved "https://github.com/agentofuser/neat-frame#b244ca11078bd35f63b2d7cb22d5e4b5c12ae2aa"
dependencies:
inspect-with-kind "^1.0.5"
merge-options "^1.0.1"
Expand Down

0 comments on commit 1d6e39c

Please sign in to comment.