Commit 3c8e8604 authored by Noah Zinsmeister's avatar Noah Zinsmeister

Merge remote-tracking branch 'refs/remotes/origin/main'

parents b7636597 1ac25814
...@@ -2,7 +2,7 @@ import React from 'react' ...@@ -2,7 +2,7 @@ import React from 'react'
import styled from 'styled-components/macro' import styled from 'styled-components/macro'
import { darken } from 'polished' import { darken } from 'polished'
import { Trans } from '@lingui/macro' import { Trans } from '@lingui/macro'
import { NavLink, Link as HistoryLink } from 'react-router-dom' import { NavLink, Link as HistoryLink, useLocation } from 'react-router-dom'
import { Percent } from '@uniswap/sdk-core' import { Percent } from '@uniswap/sdk-core'
import { ArrowLeft } from 'react-feather' import { ArrowLeft } from 'react-feather'
...@@ -90,24 +90,29 @@ export function FindPoolTabs({ origin }: { origin: string }) { ...@@ -90,24 +90,29 @@ export function FindPoolTabs({ origin }: { origin: string }) {
export function AddRemoveTabs({ export function AddRemoveTabs({
adding, adding,
creating, creating,
positionID,
defaultSlippage, defaultSlippage,
positionID,
}: { }: {
adding: boolean adding: boolean
creating: boolean creating: boolean
positionID?: string | undefined
defaultSlippage: Percent defaultSlippage: Percent
positionID?: string | undefined
}) { }) {
const theme = useTheme() const theme = useTheme()
// reset states on back // reset states on back
const dispatch = useAppDispatch() const dispatch = useAppDispatch()
const location = useLocation()
// detect if back should redirect to v3 or v2 pool page
const poolLink = location.pathname.includes('add/v2')
? '/pool/v2'
: '/pool' + (!!positionID ? `/${positionID.toString()}` : '')
return ( return (
<Tabs> <Tabs>
<RowBetween style={{ padding: '1rem 1rem 0 1rem' }}> <RowBetween style={{ padding: '1rem 1rem 0 1rem' }}>
<HistoryLink <HistoryLink
to={'/pool' + (!!positionID ? `/${positionID.toString()}` : '')} to={poolLink}
onClick={() => { onClick={() => {
if (adding) { if (adding) {
// not 100% sure both of these are needed // not 100% sure both of these are needed
......
...@@ -179,7 +179,8 @@ export function useCurrency(currencyId: string | undefined): Currency | null | u ...@@ -179,7 +179,8 @@ export function useCurrency(currencyId: string | undefined): Currency | null | u
const { chainId } = useActiveWeb3React() const { chainId } = useActiveWeb3React()
const isETH = currencyId?.toUpperCase() === 'ETH' const isETH = currencyId?.toUpperCase() === 'ETH'
const token = useToken(isETH ? undefined : currencyId) const token = useToken(isETH ? undefined : currencyId)
const extendedEther = useMemo(() => (chainId ? ExtendedEther.onChain(chainId) : undefined), [chainId])
const weth = chainId ? WETH9_EXTENDED[chainId] : undefined const weth = chainId ? WETH9_EXTENDED[chainId] : undefined
if (weth?.address?.toLowerCase() === currencyId?.toLowerCase()) return weth if (weth?.address?.toLowerCase() === currencyId?.toLowerCase()) return weth
return isETH ? (chainId ? ExtendedEther.onChain(chainId) : undefined) : token return isETH ? extendedEther : token
} }
...@@ -14,7 +14,7 @@ msgstr "" ...@@ -14,7 +14,7 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Afrikaans\n" "Language-Team: Afrikaans\n"
"PO-Revision-Date: 2021-06-16 03:05\n" "PO-Revision-Date: 2021-06-16 15:05\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
...@@ -92,12 +92,12 @@ msgstr "75%" ...@@ -92,12 +92,12 @@ msgstr "75%"
#: src/pages/Vote/VotePage.tsx #: src/pages/Vote/VotePage.tsx
msgid "<0/> All Proposals" msgid "<0/> All Proposals"
msgstr "<0 /> Alle voorstelle" msgstr "<0/> Alle voorstelle"
#: src/pages/Vote/index.tsx #: src/pages/Vote/index.tsx
#: src/pages/Vote/index.tsx #: src/pages/Vote/index.tsx
msgid "<0/> Votes" msgid "<0/> Votes"
msgstr "<0 /> Stemme" msgstr "<0/> Stemme"
#: src/pages/Pool/v2.tsx #: src/pages/Pool/v2.tsx
msgid "<0>Account analytics and accrued fees</0><1> ↗ </1>" msgid "<0>Account analytics and accrued fees</0><1> ↗ </1>"
...@@ -171,7 +171,7 @@ msgstr "Voeg likiditeit by." ...@@ -171,7 +171,7 @@ msgstr "Voeg likiditeit by."
#: src/components/TransactionConfirmationModal/index.tsx #: src/components/TransactionConfirmationModal/index.tsx
msgid "Add {0} to Metamask <0/>" msgid "Add {0} to Metamask <0/>"
msgstr "Voeg {0} by Metamask <0 />" msgstr "Voeg {0} by Metamask <0/>"
#: src/pages/AddLiquidityV2/index.tsx #: src/pages/AddLiquidityV2/index.tsx
#: src/pages/AddLiquidityV2/index.tsx #: src/pages/AddLiquidityV2/index.tsx
...@@ -264,7 +264,7 @@ msgstr "Is jy seker?" ...@@ -264,7 +264,7 @@ msgstr "Is jy seker?"
#: src/components/claim/ClaimModal.tsx #: src/components/claim/ClaimModal.tsx
msgid "As a member of the Uniswap community you may claim UNI to be used for voting and governance.<0/><1/><2>Read more about UNI</2>" msgid "As a member of the Uniswap community you may claim UNI to be used for voting and governance.<0/><1/><2>Read more about UNI</2>"
msgstr "As lid van die Uniswap-gemeenskap kan u daarop aanspraak maak dat UNI gebruik word vir stemming en beheer. <0 /> <1 /> <2> Lees meer oor UNI</2>" msgstr "As lid van die Uniswap-gemeenskap kan u daarop aanspraak maak dat UNI gebruik word vir stemming en beheer. <0/> <1/> <2> Lees meer oor UNI</2>"
#: src/pages/MigrateV2/MigrateV2Pair.tsx #: src/pages/MigrateV2/MigrateV2Pair.tsx
msgid "At least {0} {1} and {2} {3} will be refunded to your wallet due to selected price range." msgid "At least {0} {1} and {2} {3} will be refunded to your wallet due to selected price range."
...@@ -1336,7 +1336,7 @@ msgstr "Ruil {0} {1} vir {2} {3}" ...@@ -1336,7 +1336,7 @@ msgstr "Ruil {0} {1} vir {2} {3}"
#: src/components/Popups/ClaimPopup.tsx #: src/components/Popups/ClaimPopup.tsx
msgid "Thanks for being part of the Uniswap community <0/>" msgid "Thanks for being part of the Uniswap community <0/>"
msgstr "Dankie dat u deel is van die Uniswap-gemeenskap <0 />" msgstr "Dankie dat u deel is van die Uniswap-gemeenskap <0/>"
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer." msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer."
...@@ -1872,7 +1872,7 @@ msgstr "{0} %" ...@@ -1872,7 +1872,7 @@ msgstr "{0} %"
#: src/components/PositionListItem/index.tsx #: src/components/PositionListItem/index.tsx
#: src/components/PositionListItem/index.tsx #: src/components/PositionListItem/index.tsx
msgid "{0} <0/> per <1/>" msgid "{0} <0/> per <1/>"
msgstr "{0} <0 /> per <1 />" msgstr "{0} <0/> per <1/>"
#: src/components/SearchModal/ManageTokens.tsx #: src/components/SearchModal/ManageTokens.tsx
msgid "{0} Custom Tokens" msgid "{0} Custom Tokens"
...@@ -1999,7 +1999,7 @@ msgstr "{tokenB} per {tokenA}" ...@@ -1999,7 +1999,7 @@ msgstr "{tokenB} per {tokenA}"
#: src/components/CurrencyInputPanel/FiatValue.tsx #: src/components/CurrencyInputPanel/FiatValue.tsx
msgid "~$ <0/>" msgid "~$ <0/>"
msgstr "~ $ <0 />" msgstr "~ $ <0/>"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
msgid "← Back to Pools Overview" msgid "← Back to Pools Overview"
......
...@@ -14,7 +14,7 @@ msgstr "" ...@@ -14,7 +14,7 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Czech\n" "Language-Team: Czech\n"
"PO-Revision-Date: 2021-06-16 03:05\n" "PO-Revision-Date: 2021-06-16 16:05\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
...@@ -1336,7 +1336,7 @@ msgstr "Výměna {0} {1} za {2} {3}" ...@@ -1336,7 +1336,7 @@ msgstr "Výměna {0} {1} za {2} {3}"
#: src/components/Popups/ClaimPopup.tsx #: src/components/Popups/ClaimPopup.tsx
msgid "Thanks for being part of the Uniswap community <0/>" msgid "Thanks for being part of the Uniswap community <0/>"
msgstr "Děkujeme, že jste součástí komunity Uniswap <0 />" msgstr "Děkujeme, že jste součástí komunity Uniswap <0/>"
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer." msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer."
...@@ -1356,7 +1356,7 @@ msgstr "Výstupní žeton nelze přenést. Možná je s výstupním žetonem ně ...@@ -1356,7 +1356,7 @@ msgstr "Výstupní žeton nelze přenést. Možná je s výstupním žetonem ně
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "The output token cannot be transferred. There may be an issue with the output token. Note: fee on transfer and rebase tokens are incompatible with Uniswap V3." msgid "The output token cannot be transferred. There may be an issue with the output token. Note: fee on transfer and rebase tokens are incompatible with Uniswap V3."
msgstr "Výstupní token nelze přenést. Může dojít k problému s výstupním tokenem. Poznámka: Poplatky za tokeny za převody a rebase nejsou kompatibilní s Uniswap V3." msgstr "Výstupní žeton nelze přenést. Může dojít k problému s výstupním žetonem. Poznámka: Poplatky za žetony za převody a rebase nejsou kompatibilní s Uniswap V3."
#: src/components/Badge/RangeBadge.tsx #: src/components/Badge/RangeBadge.tsx
msgid "The price of this pool is outside of your selected range. Your position is not currently earning fees." msgid "The price of this pool is outside of your selected range. Your position is not currently earning fees."
...@@ -1388,7 +1388,7 @@ msgstr "Tento nástroj bezpečně migruje vaši {0} likviditu do V3. Proces je z ...@@ -1388,7 +1388,7 @@ msgstr "Tento nástroj bezpečně migruje vaši {0} likviditu do V3. Proces je z
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "This transaction will not succeed due to price movement. Try increasing your slippage tolerance. Note: fee on transfer and rebase tokens are incompatible with Uniswap V3." msgid "This transaction will not succeed due to price movement. Try increasing your slippage tolerance. Note: fee on transfer and rebase tokens are incompatible with Uniswap V3."
msgstr "Tato transakce nebude úspěšná z důvodu cenového pohybu. Zkuste zvýšit toleranci skluzu. Poznámka: Poplatky za tokeny za převody a rebase nejsou kompatibilní s Uniswap V3." msgstr "Tato transakce nebude úspěšná z důvodu cenového pohybu. Zkuste zvýšit toleranci skluzu. Poznámka: Poplatky za žetony za převody a rebase nejsou kompatibilní s Uniswap V3."
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "This transaction will not succeed either due to price movement or fee on transfer. Try increasing your slippage tolerance." msgid "This transaction will not succeed either due to price movement or fee on transfer. Try increasing your slippage tolerance."
...@@ -1527,7 +1527,7 @@ msgstr "Neznámý zdroj" ...@@ -1527,7 +1527,7 @@ msgstr "Neznámý zdroj"
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "Unknown error{0}. Try increasing your slippage tolerance. Note: fee on transfer and rebase tokens are incompatible with Uniswap V3." msgid "Unknown error{0}. Try increasing your slippage tolerance. Note: fee on transfer and rebase tokens are incompatible with Uniswap V3."
msgstr "Neznámá chyba{0}. Zkuste zvýšit toleranci skluzu. Poznámka: Poplatky za tokeny za převody a rebase nejsou kompatibilní s Uniswap V3." msgstr "Neznámá chyba{0}. Zkuste zvýšit toleranci skluzu. Poznámka: Poplatky za žetony za převody a rebase nejsou kompatibilní s Uniswap V3."
#: src/pages/Vote/VotePage.tsx #: src/pages/Vote/VotePage.tsx
#: src/pages/Vote/index.tsx #: src/pages/Vote/index.tsx
......
...@@ -14,7 +14,7 @@ msgstr "" ...@@ -14,7 +14,7 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Danish\n" "Language-Team: Danish\n"
"PO-Revision-Date: 2021-06-16 03:05\n" "PO-Revision-Date: 2021-06-16 16:05\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
...@@ -1336,7 +1336,7 @@ msgstr "Byt {0} {1} til {2} {3}" ...@@ -1336,7 +1336,7 @@ msgstr "Byt {0} {1} til {2} {3}"
#: src/components/Popups/ClaimPopup.tsx #: src/components/Popups/ClaimPopup.tsx
msgid "Thanks for being part of the Uniswap community <0/>" msgid "Thanks for being part of the Uniswap community <0/>"
msgstr "Tak, fordi du er en del af Uniswap-gruppen <0 />" msgstr "Tak, fordi du er en del af Uniswap-gruppen <0/>"
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer." msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer."
......
...@@ -14,7 +14,7 @@ msgstr "" ...@@ -14,7 +14,7 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Greek\n" "Language-Team: Greek\n"
"PO-Revision-Date: 2021-06-16 03:05\n" "PO-Revision-Date: 2021-06-16 17:15\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
...@@ -1688,7 +1688,7 @@ msgstr "Πραγματοποιήθηκε ανάληψη UNI-V2!" ...@@ -1688,7 +1688,7 @@ msgstr "Πραγματοποιήθηκε ανάληψη UNI-V2!"
#: src/pages/Swap/index.tsx #: src/pages/Swap/index.tsx
msgid "Wrap" msgid "Wrap"
msgstr "Σύνοψη" msgstr "Αναδίπλωση"
#: src/components/WalletModal/index.tsx #: src/components/WalletModal/index.tsx
#: src/components/Web3Status/index.tsx #: src/components/Web3Status/index.tsx
......
...@@ -14,7 +14,7 @@ msgstr "" ...@@ -14,7 +14,7 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Spanish\n" "Language-Team: Spanish\n"
"PO-Revision-Date: 2021-06-16 03:05\n" "PO-Revision-Date: 2021-06-16 19:06\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
......
...@@ -14,12 +14,12 @@ msgstr "" ...@@ -14,12 +14,12 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Hebrew\n" "Language-Team: Hebrew\n"
"PO-Revision-Date: 2021-06-16 12:05\n" "PO-Revision-Date: 2021-06-16 17:15\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
msgid "$-" msgid "$-"
msgstr "$ -" msgstr "$-"
#: src/components/earn/PoolCard.tsx #: src/components/earn/PoolCard.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
...@@ -92,12 +92,12 @@ msgstr "75%" ...@@ -92,12 +92,12 @@ msgstr "75%"
#: src/pages/Vote/VotePage.tsx #: src/pages/Vote/VotePage.tsx
msgid "<0/> All Proposals" msgid "<0/> All Proposals"
msgstr "<0 /> כל ההצעות" msgstr "<0/> כל ההצעות"
#: src/pages/Vote/index.tsx #: src/pages/Vote/index.tsx
#: src/pages/Vote/index.tsx #: src/pages/Vote/index.tsx
msgid "<0/> Votes" msgid "<0/> Votes"
msgstr "<0 /> הצבעות" msgstr "<0/> הצבעות"
#: src/pages/Pool/v2.tsx #: src/pages/Pool/v2.tsx
msgid "<0>Account analytics and accrued fees</0><1> ↗ </1>" msgid "<0>Account analytics and accrued fees</0><1> ↗ </1>"
...@@ -137,7 +137,7 @@ msgstr "אודות" ...@@ -137,7 +137,7 @@ msgstr "אודות"
#: src/components/swap/SwapModalHeader.tsx #: src/components/swap/SwapModalHeader.tsx
msgid "Accept" msgid "Accept"
msgstr "קבלה" msgstr "לְקַבֵּל"
#: src/components/AccountDetails/index.tsx #: src/components/AccountDetails/index.tsx
msgid "Account" msgid "Account"
...@@ -171,7 +171,7 @@ msgstr "הוסף נזילות." ...@@ -171,7 +171,7 @@ msgstr "הוסף נזילות."
#: src/components/TransactionConfirmationModal/index.tsx #: src/components/TransactionConfirmationModal/index.tsx
msgid "Add {0} to Metamask <0/>" msgid "Add {0} to Metamask <0/>"
msgstr "הוסף {0} למטא-מסכה <0 />" msgstr "הוסף {0} למטא-מסכה <0/>"
#: src/pages/AddLiquidityV2/index.tsx #: src/pages/AddLiquidityV2/index.tsx
#: src/pages/AddLiquidityV2/index.tsx #: src/pages/AddLiquidityV2/index.tsx
...@@ -264,7 +264,7 @@ msgstr "האם אתה בטוח?" ...@@ -264,7 +264,7 @@ msgstr "האם אתה בטוח?"
#: src/components/claim/ClaimModal.tsx #: src/components/claim/ClaimModal.tsx
msgid "As a member of the Uniswap community you may claim UNI to be used for voting and governance.<0/><1/><2>Read more about UNI</2>" msgid "As a member of the Uniswap community you may claim UNI to be used for voting and governance.<0/><1/><2>Read more about UNI</2>"
msgstr "כחבר בקהילת Uniswap אתה יכול לטעון ש- UNI משמשת להצבעה ולממשל. <0 /> <1 /> <2> קרא עוד על UNI</2>" msgstr "כחבר בקהילת Uniswap אתה יכול לטעון ש- UNI משמשת להצבעה ולממשל. <0/> <1/> <2> קרא עוד על UNI</2>"
#: src/pages/MigrateV2/MigrateV2Pair.tsx #: src/pages/MigrateV2/MigrateV2Pair.tsx
msgid "At least {0} {1} and {2} {3} will be refunded to your wallet due to selected price range." msgid "At least {0} {1} and {2} {3} will be refunded to your wallet due to selected price range."
...@@ -522,7 +522,7 @@ msgstr "צור זוג" ...@@ -522,7 +522,7 @@ msgstr "צור זוג"
#: src/pages/Pool/index.tsx #: src/pages/Pool/index.tsx
msgid "Create a pool" msgid "Create a pool"
msgstr "צור בריכה" msgstr "צור מאגר"
#: src/components/ErrorBoundary/index.tsx #: src/components/ErrorBoundary/index.tsx
msgid "Create an issue on GitHub" msgid "Create an issue on GitHub"
...@@ -1729,7 +1729,7 @@ msgstr "עליך לתת לחוזים החכמים של Uniswap להשתמש ב- ...@@ -1729,7 +1729,7 @@ msgstr "עליך לתת לחוזים החכמים של Uniswap להשתמש ב-
#: src/pages/MigrateV2/MigrateV2Pair.tsx #: src/pages/MigrateV2/MigrateV2Pair.tsx
msgid "You should only deposit liquidity into Uniswap V3 at a price you believe is correct. <0/>If the price seems incorrect, you can either make a swap to move the price or wait for someone else to do so." msgid "You should only deposit liquidity into Uniswap V3 at a price you believe is correct. <0/>If the price seems incorrect, you can either make a swap to move the price or wait for someone else to do so."
msgstr "עליכם להפקיד נזילות רק ב- Uniswap V3 במחיר שלדעתכם נכון. <0 /> אם נראה שהמחיר שגוי, באפשרותך להחליף כדי להזיז את המחיר או לחכות שמישהו אחר יעשה זאת." msgstr "עליכם להפקיד נזילות רק ב- Uniswap V3 במחיר שלדעתכם נכון. <0/> אם נראה שהמחיר שגוי, באפשרותך להחליף כדי להזיז את המחיר או לחכות שמישהו אחר יעשה זאת."
#: src/pages/RemoveLiquidity/V3.tsx #: src/pages/RemoveLiquidity/V3.tsx
msgid "You will also collect fees earned from this position." msgid "You will also collect fees earned from this position."
...@@ -1872,7 +1872,7 @@ msgstr "{0} %" ...@@ -1872,7 +1872,7 @@ msgstr "{0} %"
#: src/components/PositionListItem/index.tsx #: src/components/PositionListItem/index.tsx
#: src/components/PositionListItem/index.tsx #: src/components/PositionListItem/index.tsx
msgid "{0} <0/> per <1/>" msgid "{0} <0/> per <1/>"
msgstr "{0} <0 /> לכל <1 />" msgstr "{0} <0 /> לכל <1/>"
#: src/components/SearchModal/ManageTokens.tsx #: src/components/SearchModal/ManageTokens.tsx
msgid "{0} Custom Tokens" msgid "{0} Custom Tokens"
...@@ -1999,7 +1999,7 @@ msgstr "{tokenB} לכל {tokenA}" ...@@ -1999,7 +1999,7 @@ msgstr "{tokenB} לכל {tokenA}"
#: src/components/CurrencyInputPanel/FiatValue.tsx #: src/components/CurrencyInputPanel/FiatValue.tsx
msgid "~$ <0/>" msgid "~$ <0/>"
msgstr "~ $ <0 />" msgstr "~ $ <0/>"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
msgid "← Back to Pools Overview" msgid "← Back to Pools Overview"
......
...@@ -14,7 +14,7 @@ msgstr "" ...@@ -14,7 +14,7 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Hungarian\n" "Language-Team: Hungarian\n"
"PO-Revision-Date: 2021-06-16 03:05\n" "PO-Revision-Date: 2021-06-16 17:15\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
...@@ -171,7 +171,7 @@ msgstr "Adja hozzá a likviditást." ...@@ -171,7 +171,7 @@ msgstr "Adja hozzá a likviditást."
#: src/components/TransactionConfirmationModal/index.tsx #: src/components/TransactionConfirmationModal/index.tsx
msgid "Add {0} to Metamask <0/>" msgid "Add {0} to Metamask <0/>"
msgstr "{0} hozzáadása a Metamask <0 /> elemhez" msgstr "{0} hozzáadása a Metamask <0/> elemhez"
#: src/pages/AddLiquidityV2/index.tsx #: src/pages/AddLiquidityV2/index.tsx
#: src/pages/AddLiquidityV2/index.tsx #: src/pages/AddLiquidityV2/index.tsx
...@@ -1337,7 +1337,7 @@ msgstr "{0} {1} cseréje a következőre {2} {3}" ...@@ -1337,7 +1337,7 @@ msgstr "{0} {1} cseréje a következőre {2} {3}"
#: src/components/Popups/ClaimPopup.tsx #: src/components/Popups/ClaimPopup.tsx
msgid "Thanks for being part of the Uniswap community <0/>" msgid "Thanks for being part of the Uniswap community <0/>"
msgstr "Köszönjük, hogy az Uniswap közösség tagja <0 />" msgstr "Köszönjük, hogy az Uniswap közösség tagja <0/>"
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer." msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer."
...@@ -1873,7 +1873,7 @@ msgstr "{0} %" ...@@ -1873,7 +1873,7 @@ msgstr "{0} %"
#: src/components/PositionListItem/index.tsx #: src/components/PositionListItem/index.tsx
#: src/components/PositionListItem/index.tsx #: src/components/PositionListItem/index.tsx
msgid "{0} <0/> per <1/>" msgid "{0} <0/> per <1/>"
msgstr "{0} <0 /> per <1 />" msgstr "{0} <0/> per <1/>"
#: src/components/SearchModal/ManageTokens.tsx #: src/components/SearchModal/ManageTokens.tsx
msgid "{0} Custom Tokens" msgid "{0} Custom Tokens"
...@@ -2001,7 +2001,7 @@ msgstr "{tokenB} per {tokenA}" ...@@ -2001,7 +2001,7 @@ msgstr "{tokenB} per {tokenA}"
#: src/components/CurrencyInputPanel/FiatValue.tsx #: src/components/CurrencyInputPanel/FiatValue.tsx
msgid "~$ <0/>" msgid "~$ <0/>"
msgstr "~ $ <0 />" msgstr "~ $ <0/>"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
msgid "← Back to Pools Overview" msgid "← Back to Pools Overview"
......
...@@ -14,7 +14,7 @@ msgstr "" ...@@ -14,7 +14,7 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Indonesian\n" "Language-Team: Indonesian\n"
"PO-Revision-Date: 2021-06-16 03:05\n" "PO-Revision-Date: 2021-06-16 17:15\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
...@@ -1336,7 +1336,7 @@ msgstr "Menukar {0} {1} untuk {2} {3}" ...@@ -1336,7 +1336,7 @@ msgstr "Menukar {0} {1} untuk {2} {3}"
#: src/components/Popups/ClaimPopup.tsx #: src/components/Popups/ClaimPopup.tsx
msgid "Thanks for being part of the Uniswap community <0/>" msgid "Thanks for being part of the Uniswap community <0/>"
msgstr "Terima kasih telah menjadi bagian dari komunitas Uniswap </>" msgstr "Terima kasih telah menjadi bagian dari komunitas Uniswap <0/>"
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer." msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer."
......
This diff is collapsed.
...@@ -14,7 +14,7 @@ msgstr "" ...@@ -14,7 +14,7 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Korean\n" "Language-Team: Korean\n"
"PO-Revision-Date: 2021-06-16 03:05\n" "PO-Revision-Date: 2021-06-16 19:06\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
...@@ -1336,7 +1336,7 @@ msgstr "{0} {1} 을 {2} {3}(으)로 스왑" ...@@ -1336,7 +1336,7 @@ msgstr "{0} {1} 을 {2} {3}(으)로 스왑"
#: src/components/Popups/ClaimPopup.tsx #: src/components/Popups/ClaimPopup.tsx
msgid "Thanks for being part of the Uniswap community <0/>" msgid "Thanks for being part of the Uniswap community <0/>"
msgstr "Uniswap 커뮤니티에 참여해 주셔서 감사합니다. <0 />" msgstr "Uniswap 커뮤니티에 참여해 주셔서 감사합니다. <0/>"
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer." msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer."
......
...@@ -14,7 +14,7 @@ msgstr "" ...@@ -14,7 +14,7 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Norwegian\n" "Language-Team: Norwegian\n"
"PO-Revision-Date: 2021-06-16 03:05\n" "PO-Revision-Date: 2021-06-16 19:06\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
...@@ -1336,7 +1336,7 @@ msgstr "Bytte {0} {1} mot {2} {3}" ...@@ -1336,7 +1336,7 @@ msgstr "Bytte {0} {1} mot {2} {3}"
#: src/components/Popups/ClaimPopup.tsx #: src/components/Popups/ClaimPopup.tsx
msgid "Thanks for being part of the Uniswap community <0/>" msgid "Thanks for being part of the Uniswap community <0/>"
msgstr "Takk for at du er en del av Uniswap-fellesskapet <0 />" msgstr "Takk for at du er en del av Uniswap-fellesskapet <0/>"
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer." msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer."
......
...@@ -14,7 +14,7 @@ msgstr "" ...@@ -14,7 +14,7 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Russian\n" "Language-Team: Russian\n"
"PO-Revision-Date: 2021-06-16 08:05\n" "PO-Revision-Date: 2021-06-16 19:06\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
...@@ -1336,7 +1336,7 @@ msgstr "Идет обмен {0} {1} на {2} {3}" ...@@ -1336,7 +1336,7 @@ msgstr "Идет обмен {0} {1} на {2} {3}"
#: src/components/Popups/ClaimPopup.tsx #: src/components/Popups/ClaimPopup.tsx
msgid "Thanks for being part of the Uniswap community <0/>" msgid "Thanks for being part of the Uniswap community <0/>"
msgstr "Спасибо, что присоединились к сообществу Uniswap <0 />" msgstr "Спасибо, что присоединились к сообществу Uniswap <0/>"
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer." msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer."
......
...@@ -14,7 +14,7 @@ msgstr "" ...@@ -14,7 +14,7 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Swedish\n" "Language-Team: Swedish\n"
"PO-Revision-Date: 2021-06-16 03:05\n" "PO-Revision-Date: 2021-06-16 19:06\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
...@@ -1336,7 +1336,7 @@ msgstr "Byter ut {0} {1} mot {2} {3}" ...@@ -1336,7 +1336,7 @@ msgstr "Byter ut {0} {1} mot {2} {3}"
#: src/components/Popups/ClaimPopup.tsx #: src/components/Popups/ClaimPopup.tsx
msgid "Thanks for being part of the Uniswap community <0/>" msgid "Thanks for being part of the Uniswap community <0/>"
msgstr "Tack för att du deltar i Uniswap-gemenskapen<0 />" msgstr "Tack för att du deltar i Uniswap-gemenskapen<0/>"
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer." msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer."
......
...@@ -14,7 +14,7 @@ msgstr "" ...@@ -14,7 +14,7 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Ukrainian\n" "Language-Team: Ukrainian\n"
"PO-Revision-Date: 2021-06-16 03:05\n" "PO-Revision-Date: 2021-06-16 19:06\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
...@@ -1729,7 +1729,7 @@ msgstr "Ви маєте дати дозвіл розумних контракт ...@@ -1729,7 +1729,7 @@ msgstr "Ви маєте дати дозвіл розумних контракт
#: src/pages/MigrateV2/MigrateV2Pair.tsx #: src/pages/MigrateV2/MigrateV2Pair.tsx
msgid "You should only deposit liquidity into Uniswap V3 at a price you believe is correct. <0/>If the price seems incorrect, you can either make a swap to move the price or wait for someone else to do so." msgid "You should only deposit liquidity into Uniswap V3 at a price you believe is correct. <0/>If the price seems incorrect, you can either make a swap to move the price or wait for someone else to do so."
msgstr "Ви маєте вносити ліквідність у Uniswap V3 лише за ціною, яку ви вважаєте правильною. <0 /> Якщо ціна здається неправильною, ви можете здійснити обмін, аби перемістити ціну, або дочекатися, поки цього зробить хтось інший." msgstr "Ви маєте вносити ліквідність у Uniswap V3 лише за ціною, яку ви вважаєте правильною. <0/> Якщо ціна здається неправильною, ви можете здійснити обмін, аби перемістити ціну, або дочекатися, поки цього зробить хтось інший."
#: src/pages/RemoveLiquidity/V3.tsx #: src/pages/RemoveLiquidity/V3.tsx
msgid "You will also collect fees earned from this position." msgid "You will also collect fees earned from this position."
......
...@@ -14,7 +14,7 @@ msgstr "" ...@@ -14,7 +14,7 @@ msgstr ""
"X-Crowdin-File-ID: 4\n" "X-Crowdin-File-ID: 4\n"
"Project-Id-Version: uniswap-interface\n" "Project-Id-Version: uniswap-interface\n"
"Language-Team: Vietnamese\n" "Language-Team: Vietnamese\n"
"PO-Revision-Date: 2021-06-16 03:05\n" "PO-Revision-Date: 2021-06-16 20:04\n"
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
...@@ -1336,7 +1336,7 @@ msgstr "Đổi {0} {1} lấy {2} {3}" ...@@ -1336,7 +1336,7 @@ msgstr "Đổi {0} {1} lấy {2} {3}"
#: src/components/Popups/ClaimPopup.tsx #: src/components/Popups/ClaimPopup.tsx
msgid "Thanks for being part of the Uniswap community <0/>" msgid "Thanks for being part of the Uniswap community <0/>"
msgstr "Cảm ơn bạn đã tham gia cộng đồng Uniswap <0 />" msgstr "Cảm ơn bạn đã tham gia cộng đồng Uniswap <0/>"
#: src/hooks/useSwapCallback.ts #: src/hooks/useSwapCallback.ts
msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer." msgid "The Uniswap invariant x*y=k was not satisfied by the swap. This usually means one of the tokens you are swapping incorporates custom behavior on transfer."
......
...@@ -55,6 +55,7 @@ import RateToggle from 'components/RateToggle' ...@@ -55,6 +55,7 @@ import RateToggle from 'components/RateToggle'
import { BigNumber } from '@ethersproject/bignumber' import { BigNumber } from '@ethersproject/bignumber'
import { AddRemoveTabs } from 'components/NavigationTabs' import { AddRemoveTabs } from 'components/NavigationTabs'
import HoverInlineText from 'components/HoverInlineText' import HoverInlineText from 'components/HoverInlineText'
import { SwitchLocaleLink } from 'components/SwitchLocaleLink'
const DEFAULT_ADD_IN_RANGE_SLIPPAGE_TOLERANCE = new Percent(50, 10_000) const DEFAULT_ADD_IN_RANGE_SLIPPAGE_TOLERANCE = new Percent(50, 10_000)
...@@ -385,6 +386,7 @@ export default function AddLiquidity({ ...@@ -385,6 +386,7 @@ export default function AddLiquidity({
!argentWalletContract && approvalB !== ApprovalState.APPROVED && !!parsedAmounts[Field.CURRENCY_B] !argentWalletContract && approvalB !== ApprovalState.APPROVED && !!parsedAmounts[Field.CURRENCY_B]
return ( return (
<>
<ScrollablePage> <ScrollablePage>
<TransactionConfirmationModal <TransactionConfirmationModal
isOpen={showConfirm} isOpen={showConfirm}
...@@ -562,7 +564,10 @@ export default function AddLiquidity({ ...@@ -562,7 +564,10 @@ export default function AddLiquidity({
</DynamicSection> </DynamicSection>
)} )}
<DynamicSection gap="md" disabled={!feeAmount || invalidPool || (noLiquidity && !startPriceTypedValue)}> <DynamicSection
gap="md"
disabled={!feeAmount || invalidPool || (noLiquidity && !startPriceTypedValue)}
>
<RowBetween> <RowBetween>
<TYPE.label> <TYPE.label>
<Trans>Set Price Range</Trans> <Trans>Set Price Range</Trans>
...@@ -576,7 +581,9 @@ export default function AddLiquidity({ ...@@ -576,7 +581,9 @@ export default function AddLiquidity({
onLeftRangeInput('') onLeftRangeInput('')
onRightRangeInput('') onRightRangeInput('')
history.push( history.push(
`/add/${currencyIdB as string}/${currencyIdA as string}${feeAmount ? '/' + feeAmount : ''}` `/add/${currencyIdB as string}/${currencyIdA as string}${
feeAmount ? '/' + feeAmount : ''
}`
) )
}} }}
/> />
...@@ -635,8 +642,8 @@ export default function AddLiquidity({ ...@@ -635,8 +642,8 @@ export default function AddLiquidity({
<AlertTriangle stroke={theme.yellow3} size="16px" /> <AlertTriangle stroke={theme.yellow3} size="16px" />
<TYPE.yellow ml="12px" fontSize="12px"> <TYPE.yellow ml="12px" fontSize="12px">
<Trans> <Trans>
Your position will not earn fees or be used in trades until the market price moves into your Your position will not earn fees or be used in trades until the market price moves into
range. your range.
</Trans> </Trans>
</TYPE.yellow> </TYPE.yellow>
</RowBetween> </RowBetween>
...@@ -713,8 +720,6 @@ export default function AddLiquidity({ ...@@ -713,8 +720,6 @@ export default function AddLiquidity({
<RowBetween> <RowBetween>
{showApprovalA && ( {showApprovalA && (
<ButtonPrimary <ButtonPrimary
borderRadius="12px"
padding={'12px'}
onClick={approveACallback} onClick={approveACallback}
disabled={approvalA === ApprovalState.PENDING} disabled={approvalA === ApprovalState.PENDING}
width={showApprovalB ? '48%' : '100%'} width={showApprovalB ? '48%' : '100%'}
...@@ -730,8 +735,6 @@ export default function AddLiquidity({ ...@@ -730,8 +735,6 @@ export default function AddLiquidity({
)} )}
{showApprovalB && ( {showApprovalB && (
<ButtonPrimary <ButtonPrimary
borderRadius="12px"
padding={'12px'}
onClick={approveBCallback} onClick={approveBCallback}
disabled={approvalB === ApprovalState.PENDING} disabled={approvalB === ApprovalState.PENDING}
width={showApprovalA ? '48%' : '100%'} width={showApprovalA ? '48%' : '100%'}
...@@ -773,5 +776,7 @@ export default function AddLiquidity({ ...@@ -773,5 +776,7 @@ export default function AddLiquidity({
/> />
)} )}
</ScrollablePage> </ScrollablePage>
<SwitchLocaleLink />
</>
) )
} }
...@@ -42,6 +42,7 @@ import { ConfirmAddModalBottom } from './ConfirmAddModalBottom' ...@@ -42,6 +42,7 @@ import { ConfirmAddModalBottom } from './ConfirmAddModalBottom'
import { currencyId } from '../../utils/currencyId' import { currencyId } from '../../utils/currencyId'
import { PoolPriceBar } from './PoolPriceBar' import { PoolPriceBar } from './PoolPriceBar'
import UnsupportedCurrencyFooter from 'components/swap/UnsupportedCurrencyFooter' import UnsupportedCurrencyFooter from 'components/swap/UnsupportedCurrencyFooter'
import { SwitchLocaleLink } from 'components/SwitchLocaleLink'
import { t, Trans } from '@lingui/macro' import { t, Trans } from '@lingui/macro'
const DEFAULT_ADD_V2_SLIPPAGE_TOLERANCE = new Percent(50, 10_000) const DEFAULT_ADD_V2_SLIPPAGE_TOLERANCE = new Percent(50, 10_000)
...@@ -485,6 +486,8 @@ export default function AddLiquidity({ ...@@ -485,6 +486,8 @@ export default function AddLiquidity({
</AutoColumn> </AutoColumn>
</Wrapper> </Wrapper>
</AppBody> </AppBody>
<SwitchLocaleLink />
{!addIsUnsupported ? ( {!addIsUnsupported ? (
pair && !noLiquidity && pairState !== PairState.INVALID ? ( pair && !noLiquidity && pairState !== PairState.INVALID ? (
<AutoColumn style={{ minWidth: '20rem', width: '100%', maxWidth: '400px', marginTop: '1rem' }}> <AutoColumn style={{ minWidth: '20rem', width: '100%', maxWidth: '400px', marginTop: '1rem' }}>
......
...@@ -16,6 +16,7 @@ import { Dots } from '../../components/swap/styleds' ...@@ -16,6 +16,7 @@ import { Dots } from '../../components/swap/styleds'
import { toV2LiquidityToken, useTrackedTokenPairs } from '../../state/user/hooks' import { toV2LiquidityToken, useTrackedTokenPairs } from '../../state/user/hooks'
import MigrateV2PositionCard from 'components/PositionCard/V2' import MigrateV2PositionCard from 'components/PositionCard/V2'
import MigrateSushiPositionCard from 'components/PositionCard/Sushi' import MigrateSushiPositionCard from 'components/PositionCard/Sushi'
import { SwitchLocaleLink } from 'components/SwitchLocaleLink'
import { PairState, useV2Pairs } from 'hooks/useV2Pairs' import { PairState, useV2Pairs } from 'hooks/useV2Pairs'
import { getCreate2Address } from '@ethersproject/address' import { getCreate2Address } from '@ethersproject/address'
import { pack, keccak256 } from '@ethersproject/solidity' import { pack, keccak256 } from '@ethersproject/solidity'
...@@ -110,6 +111,7 @@ export default function MigrateV2() { ...@@ -110,6 +111,7 @@ export default function MigrateV2() {
const v2IsLoading = fetchingPairBalances || v2Pairs.some(([pairState]) => pairState === PairState.LOADING) const v2IsLoading = fetchingPairBalances || v2Pairs.some(([pairState]) => pairState === PairState.LOADING)
return ( return (
<>
<BodyWrapper style={{ padding: 24 }}> <BodyWrapper style={{ padding: 24 }}>
<AutoColumn gap="16px"> <AutoColumn gap="16px">
<AutoRow style={{ alignItems: 'center', justifyContent: 'space-between' }} gap="8px"> <AutoRow style={{ alignItems: 'center', justifyContent: 'space-between' }} gap="8px">
...@@ -178,5 +180,7 @@ export default function MigrateV2() { ...@@ -178,5 +180,7 @@ export default function MigrateV2() {
</AutoColumn> </AutoColumn>
</AutoColumn> </AutoColumn>
</BodyWrapper> </BodyWrapper>
<SwitchLocaleLink />
</>
) )
} }
...@@ -37,6 +37,7 @@ import useTheme from '../../hooks/useTheme' ...@@ -37,6 +37,7 @@ import useTheme from '../../hooks/useTheme'
import RateToggle from '../../components/RateToggle' import RateToggle from '../../components/RateToggle'
import { useSingleCallResult } from 'state/multicall/hooks' import { useSingleCallResult } from 'state/multicall/hooks'
import RangeBadge from '../../components/Badge/RangeBadge' import RangeBadge from '../../components/Badge/RangeBadge'
import { SwitchLocaleLink } from '../../components/SwitchLocaleLink'
import useUSDCPrice from 'hooks/useUSDCPrice' import useUSDCPrice from 'hooks/useUSDCPrice'
import Loader from 'components/Loader' import Loader from 'components/Loader'
import Toggle from 'components/Toggle' import Toggle from 'components/Toggle'
...@@ -495,6 +496,7 @@ export function PositionPage({ ...@@ -495,6 +496,7 @@ export function PositionPage({
<div /> <div />
</LoadingRows> </LoadingRows>
) : ( ) : (
<>
<PageWrapper> <PageWrapper>
<TransactionConfirmationModal <TransactionConfirmationModal
isOpen={showConfirm} isOpen={showConfirm}
...@@ -828,5 +830,7 @@ export function PositionPage({ ...@@ -828,5 +830,7 @@ export function PositionPage({
</DarkCard> </DarkCard>
</AutoColumn> </AutoColumn>
</PageWrapper> </PageWrapper>
<SwitchLocaleLink />
</>
) )
} }
...@@ -19,6 +19,7 @@ import { useV2Pairs } from '../../hooks/useV2Pairs' ...@@ -19,6 +19,7 @@ import { useV2Pairs } from '../../hooks/useV2Pairs'
import { toV2LiquidityToken, useTrackedTokenPairs } from '../../state/user/hooks' import { toV2LiquidityToken, useTrackedTokenPairs } from '../../state/user/hooks'
import { Dots } from '../../components/swap/styleds' import { Dots } from '../../components/swap/styleds'
import { CardSection, DataCard, CardNoise, CardBGImage } from '../../components/earn/styled' import { CardSection, DataCard, CardNoise, CardBGImage } from '../../components/earn/styled'
import { SwitchLocaleLink } from '../../components/SwitchLocaleLink'
import { useStakingInfo } from '../../state/stake/hooks' import { useStakingInfo } from '../../state/stake/hooks'
import { BIG_INT_ZERO } from '../../constants/misc' import { BIG_INT_ZERO } from '../../constants/misc'
import { Pair } from '@uniswap/v2-sdk' import { Pair } from '@uniswap/v2-sdk'
...@@ -256,6 +257,7 @@ export default function Pool() { ...@@ -256,6 +257,7 @@ export default function Pool() {
</AutoColumn> </AutoColumn>
</AutoColumn> </AutoColumn>
</PageWrapper> </PageWrapper>
<SwitchLocaleLink />
</> </>
) )
} }
...@@ -11,6 +11,7 @@ import { FindPoolTabs } from '../../components/NavigationTabs' ...@@ -11,6 +11,7 @@ import { FindPoolTabs } from '../../components/NavigationTabs'
import { MinimalPositionCard } from '../../components/PositionCard' import { MinimalPositionCard } from '../../components/PositionCard'
import Row from '../../components/Row' import Row from '../../components/Row'
import CurrencySearchModal from '../../components/SearchModal/CurrencySearchModal' import CurrencySearchModal from '../../components/SearchModal/CurrencySearchModal'
import { SwitchLocaleLink } from '../../components/SwitchLocaleLink'
import { ExtendedEther } from '../../constants/tokens' import { ExtendedEther } from '../../constants/tokens'
import { PairState, useV2Pair } from '../../hooks/useV2Pairs' import { PairState, useV2Pair } from '../../hooks/useV2Pairs'
import { useActiveWeb3React } from '../../hooks/web3' import { useActiveWeb3React } from '../../hooks/web3'
...@@ -93,6 +94,7 @@ export default function PoolFinder() { ...@@ -93,6 +94,7 @@ export default function PoolFinder() {
) )
return ( return (
<>
<AppBody> <AppBody>
<FindPoolTabs origin={query.get('origin') ?? '/pool/v2'} /> <FindPoolTabs origin={query.get('origin') ?? '/pool/v2'} />
<AutoColumn style={{ padding: '1rem' }} gap="md"> <AutoColumn style={{ padding: '1rem' }} gap="md">
...@@ -224,5 +226,7 @@ export default function PoolFinder() { ...@@ -224,5 +226,7 @@ export default function PoolFinder() {
selectedCurrency={(activeField === Fields.TOKEN0 ? currency1 : currency0) ?? undefined} selectedCurrency={(activeField === Fields.TOKEN0 ? currency1 : currency0) ?? undefined}
/> />
</AppBody> </AppBody>
<SwitchLocaleLink />
</>
) )
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment