Commit ad65b638 authored by Justin Domingue's avatar Justin Domingue Committed by GitHub

remove custom keys (#1739)

parent f9a5dbf6
...@@ -43,47 +43,35 @@ export default function RangeBadge({ ...@@ -43,47 +43,35 @@ export default function RangeBadge({
return ( return (
<BadgeWrapper> <BadgeWrapper>
{removed ? ( {removed ? (
<MouseoverTooltip <MouseoverTooltip text={t`Your position has 0 liquidity, and is not earning fees.`}>
text={t({
id: 'pools.labels.inactiveTooltip',
message: 'Your position has 0 liquidity, and is not earning fees.',
})}
>
<Badge variant={BadgeVariant.DEFAULT}> <Badge variant={BadgeVariant.DEFAULT}>
<AlertCircle width={14} height={14} /> <AlertCircle width={14} height={14} />
&nbsp; &nbsp;
<BadgeText> <BadgeText>
<Trans id="pools.labels.inactive">Inactive</Trans> <Trans>Inactive</Trans>
</BadgeText> </BadgeText>
</Badge> </Badge>
</MouseoverTooltip> </MouseoverTooltip>
) : inRange ? ( ) : inRange ? (
<MouseoverTooltip <MouseoverTooltip
text={t({ text={t`The price of this pool is within your selected range. Your position is currently earning fees.`}
id: 'pools.labels.inRangeTooltip',
message: 'The price of this pool is within your selected range. Your position is currently earning fees.',
})}
> >
<Badge variant={BadgeVariant.DEFAULT}> <Badge variant={BadgeVariant.DEFAULT}>
<ActiveDot /> &nbsp; <ActiveDot /> &nbsp;
<BadgeText> <BadgeText>
<Trans id="pools.labels.inRange">In range</Trans> <Trans>In range</Trans>
</BadgeText> </BadgeText>
</Badge> </Badge>
</MouseoverTooltip> </MouseoverTooltip>
) : ( ) : (
<MouseoverTooltip <MouseoverTooltip
text={t({ text={t`The price of this pool is outside of your selected range. Your position is not currently earning fees.`}
id: 'pools.labels.outOfRangeTooltip',
message:
'The price of this pool is outside of your selected range. Your position is not currently earning fees.',
})}
> >
<Badge variant={BadgeVariant.WARNING}> <Badge variant={BadgeVariant.WARNING}>
<AlertCircle width={14} height={14} /> <AlertCircle width={14} height={14} />
&nbsp; &nbsp;
<BadgeText> <BadgeText>
<Trans id="pools.labels.outOfRange">Out of range</Trans> <Trans>Out of range</Trans>
</BadgeText> </BadgeText>
</Badge> </Badge>
</MouseoverTooltip> </MouseoverTooltip>
......
...@@ -199,9 +199,7 @@ export default function CurrencyInputPanel({ ...@@ -199,9 +199,7 @@ export default function CurrencyInputPanel({
<AutoColumn gap="sm" justify="center"> <AutoColumn gap="sm" justify="center">
<Lock /> <Lock />
<TYPE.label fontSize="12px" textAlign="center"> <TYPE.label fontSize="12px" textAlign="center">
<Trans id="currencies.input.priceOutsideWarning"> <Trans>The market price is outside your specified price range. Single-asset deposit only.</Trans>
The market price is outside your specified price range. Single-asset deposit only.
</Trans>
</TYPE.label> </TYPE.label>
</AutoColumn> </AutoColumn>
</FixedContainer> </FixedContainer>
...@@ -237,7 +235,7 @@ export default function CurrencyInputPanel({ ...@@ -237,7 +235,7 @@ export default function CurrencyInputPanel({
? currency.symbol.slice(0, 4) + ? currency.symbol.slice(0, 4) +
'...' + '...' +
currency.symbol.slice(currency.symbol.length - 5, currency.symbol.length) currency.symbol.slice(currency.symbol.length - 5, currency.symbol.length)
: currency?.symbol) || t({ id: 'currencies.search.selectToken', message: 'Select a token' })} : currency?.symbol) || t`Select a token`}
</StyledTokenName> </StyledTokenName>
)} )}
</RowFixed> </RowFixed>
...@@ -277,7 +275,7 @@ export default function CurrencyInputPanel({ ...@@ -277,7 +275,7 @@ export default function CurrencyInputPanel({
</TYPE.body> </TYPE.body>
{showMaxButton && selectedCurrencyBalance ? ( {showMaxButton && selectedCurrencyBalance ? (
<StyledBalanceMax onClick={onMax}> <StyledBalanceMax onClick={onMax}>
<Trans id="currencies.input.max">(Max)</Trans> <Trans>(Max)</Trans>
</StyledBalanceMax> </StyledBalanceMax>
) : null} ) : null}
</RowFixed> </RowFixed>
......
...@@ -26,12 +26,9 @@ export default function FeeSelector({ ...@@ -26,12 +26,9 @@ export default function FeeSelector({
return ( return (
<AutoColumn gap="16px"> <AutoColumn gap="16px">
<DynamicSection gap="md" disabled={disabled}> <DynamicSection gap="md" disabled={disabled}>
<TYPE.label>{t({ id: 'pools.feeSelector.title', message: 'Select Pool' })}</TYPE.label> <TYPE.label>{t`Select Pool`}</TYPE.label>
<TYPE.main fontSize={14} fontWeight={400} style={{ marginBottom: '.5rem', lineHeight: '125%' }}> <TYPE.main fontSize={14} fontWeight={400} style={{ marginBottom: '.5rem', lineHeight: '125%' }}>
{t({ {t`Select a pool type based on your preferred liquidity provider fee.`}
id: 'pools.feeSelector.subtitle',
message: 'Select a pool type based on your preferred liquidity provider fee.',
})}
</TYPE.main> </TYPE.main>
<RowBetween> <RowBetween>
<ButtonRadioChecked <ButtonRadioChecked
...@@ -40,9 +37,9 @@ export default function FeeSelector({ ...@@ -40,9 +37,9 @@ export default function FeeSelector({
onClick={() => handleFeePoolSelect(FeeAmount.LOW)} onClick={() => handleFeePoolSelect(FeeAmount.LOW)}
> >
<AutoColumn gap="sm" justify="flex-start"> <AutoColumn gap="sm" justify="flex-start">
<ResponsiveText>{t({ id: 'pools.feeSelector.lowFee', message: `0.05% fee` })}</ResponsiveText> <ResponsiveText>{t`0.05% fee`}</ResponsiveText>
<TYPE.main fontWeight={400} fontSize="12px" textAlign="left"> <TYPE.main fontWeight={400} fontSize="12px" textAlign="left">
{t({ id: 'pools.feeSelector.lowFeeHint', message: 'Best for stable pairs.' })} {t`Best for stable pairs.`}
</TYPE.main> </TYPE.main>
</AutoColumn> </AutoColumn>
</ButtonRadioChecked> </ButtonRadioChecked>
...@@ -52,9 +49,9 @@ export default function FeeSelector({ ...@@ -52,9 +49,9 @@ export default function FeeSelector({
onClick={() => handleFeePoolSelect(FeeAmount.MEDIUM)} onClick={() => handleFeePoolSelect(FeeAmount.MEDIUM)}
> >
<AutoColumn gap="sm" justify="flex-start"> <AutoColumn gap="sm" justify="flex-start">
<ResponsiveText>{t({ id: 'pools.feeSelector.mediumFee', message: `0.3% fee` })}</ResponsiveText> <ResponsiveText>{t`0.3% fee`}</ResponsiveText>
<TYPE.main fontWeight={400} fontSize="12px" textAlign="left"> <TYPE.main fontWeight={400} fontSize="12px" textAlign="left">
{t({ id: 'pools.feeSelector.mediumFeeHint', message: 'Best for most pairs.' })} {t`Best for most pairs.`}
</TYPE.main> </TYPE.main>
</AutoColumn> </AutoColumn>
</ButtonRadioChecked> </ButtonRadioChecked>
...@@ -64,9 +61,9 @@ export default function FeeSelector({ ...@@ -64,9 +61,9 @@ export default function FeeSelector({
onClick={() => handleFeePoolSelect(FeeAmount.HIGH)} onClick={() => handleFeePoolSelect(FeeAmount.HIGH)}
> >
<AutoColumn gap="sm" justify="flex-start"> <AutoColumn gap="sm" justify="flex-start">
<ResponsiveText>{t({ id: 'pools.feeSelector.highFee', message: '1% fee' })}</ResponsiveText> <ResponsiveText>{t`1% fee`}</ResponsiveText>
<TYPE.main fontWeight={400} fontSize="12px" textAlign="left"> <TYPE.main fontWeight={400} fontSize="12px" textAlign="left">
{t({ id: 'pools.feeSelector.highFeeHint', message: 'Best for exotic pairs.' })} {t`Best for exotic pairs.`}
</TYPE.main> </TYPE.main>
</AutoColumn> </AutoColumn>
</ButtonRadioChecked> </ButtonRadioChecked>
......
...@@ -340,7 +340,7 @@ export default function Header() { ...@@ -340,7 +340,7 @@ export default function Header() {
</HeaderRow> </HeaderRow>
<HeaderLinks> <HeaderLinks>
<StyledNavLink id={`swap-nav-link`} to={'/swap'}> <StyledNavLink id={`swap-nav-link`} to={'/swap'}>
<Trans id="nav.swap">Swap</Trans> <Trans>Swap</Trans>
</StyledNavLink> </StyledNavLink>
<StyledNavLink <StyledNavLink
id={`pool-nav-link`} id={`pool-nav-link`}
...@@ -353,13 +353,13 @@ export default function Header() { ...@@ -353,13 +353,13 @@ export default function Header() {
pathname.startsWith('/find') pathname.startsWith('/find')
} }
> >
<Trans id="nav.pool">Pool</Trans> <Trans>Pool</Trans>
</StyledNavLink> </StyledNavLink>
<StyledNavLink id={`stake-nav-link`} to={'/vote'}> <StyledNavLink id={`stake-nav-link`} to={'/vote'}>
<Trans id="nav.vote">Vote</Trans> <Trans>Vote</Trans>
</StyledNavLink> </StyledNavLink>
<StyledExternalLink id={`stake-nav-link`} href={'https://info.uniswap.org'}> <StyledExternalLink id={`stake-nav-link`} href={'https://info.uniswap.org'}>
<Trans id="nav.charts"> <Trans>
Charts <span style={{ fontSize: '11px', textDecoration: 'none !important' }}></span> Charts <span style={{ fontSize: '11px', textDecoration: 'none !important' }}></span>
</Trans> </Trans>
</StyledExternalLink> </StyledExternalLink>
...@@ -377,10 +377,10 @@ export default function Header() { ...@@ -377,10 +377,10 @@ export default function Header() {
<TYPE.white padding="0 2px"> <TYPE.white padding="0 2px">
{claimTxn && !claimTxn?.receipt ? ( {claimTxn && !claimTxn?.receipt ? (
<Dots> <Dots>
<Trans id="claim.buttons.claimingUNI">Claiming UNI</Trans> <Trans>Claiming UNI</Trans>
</Dots> </Dots>
) : ( ) : (
<Trans id="claim.buttons.claimUNI">Claim UNI</Trans> <Trans>Claim UNI</Trans>
)} )}
</TYPE.white> </TYPE.white>
</UNIAmount> </UNIAmount>
...@@ -390,7 +390,7 @@ export default function Header() { ...@@ -390,7 +390,7 @@ export default function Header() {
<AccountElement active={!!account} style={{ pointerEvents: 'auto' }}> <AccountElement active={!!account} style={{ pointerEvents: 'auto' }}>
{account && userEthBalance ? ( {account && userEthBalance ? (
<BalanceText style={{ flexShrink: 0 }} pl="0.75rem" pr="0.5rem" fontWeight={500}> <BalanceText style={{ flexShrink: 0 }} pl="0.75rem" pr="0.5rem" fontWeight={500}>
<Trans id="wallet.ethBalance">{userEthBalance?.toSignificant(4)} ETH</Trans> <Trans>{userEthBalance?.toSignificant(4)} ETH</Trans>
</BalanceText> </BalanceText>
) : null} ) : null}
<Web3Status /> <Web3Status />
......
...@@ -63,10 +63,10 @@ export function SwapPoolTabs({ active }: { active: 'swap' | 'pool' }) { ...@@ -63,10 +63,10 @@ export function SwapPoolTabs({ active }: { active: 'swap' | 'pool' }) {
return ( return (
<Tabs style={{ marginBottom: '20px', display: 'none', padding: '1rem 1rem 0 1rem' }}> <Tabs style={{ marginBottom: '20px', display: 'none', padding: '1rem 1rem 0 1rem' }}>
<StyledNavLink id={`swap-nav-link`} to={'/swap'} isActive={() => active === 'swap'}> <StyledNavLink id={`swap-nav-link`} to={'/swap'} isActive={() => active === 'swap'}>
<Trans id="nav.swap">Swap</Trans> <Trans>Swap</Trans>
</StyledNavLink> </StyledNavLink>
<StyledNavLink id={`pool-nav-link`} to={'/pool'} isActive={() => active === 'pool'}> <StyledNavLink id={`pool-nav-link`} to={'/pool'} isActive={() => active === 'pool'}>
<Trans id="nav.pool">Pool</Trans> <Trans>Pool</Trans>
</StyledNavLink> </StyledNavLink>
</Tabs> </Tabs>
) )
...@@ -80,7 +80,7 @@ export function FindPoolTabs({ origin }: { origin: string }) { ...@@ -80,7 +80,7 @@ export function FindPoolTabs({ origin }: { origin: string }) {
<StyledArrowLeft /> <StyledArrowLeft />
</HistoryLink> </HistoryLink>
<ActiveText> <ActiveText>
<Trans id="nav.importPool">Import Pool</Trans> <Trans>Import Pool</Trans>
</ActiveText> </ActiveText>
</RowBetween> </RowBetween>
</Tabs> </Tabs>
...@@ -120,11 +120,11 @@ export function AddRemoveTabs({ ...@@ -120,11 +120,11 @@ export function AddRemoveTabs({
</HistoryLink> </HistoryLink>
<TYPE.mediumHeader fontWeight={500} fontSize={20}> <TYPE.mediumHeader fontWeight={500} fontSize={20}>
{creating ? ( {creating ? (
<Trans id="pools.buttons.createPair">Create a pair</Trans> <Trans>Create a pair</Trans>
) : adding ? ( ) : adding ? (
<Trans id="pools.buttons.addLiquidity">Add Liquidity</Trans> <Trans>Add Liquidity</Trans>
) : ( ) : (
<Trans id="pools.buttons.removeLiquidity">Remove Liquidity</Trans> <Trans>Remove Liquidity</Trans>
)} )}
</TYPE.mediumHeader> </TYPE.mediumHeader>
<SettingsTab placeholderSlippage={defaultSlippage} /> <SettingsTab placeholderSlippage={defaultSlippage} />
......
...@@ -43,15 +43,15 @@ export default function PositionList({ positions }: PositionListProps) { ...@@ -43,15 +43,15 @@ export default function PositionList({ positions }: PositionListProps) {
<> <>
<DesktopHeader> <DesktopHeader>
<div> <div>
<Trans id="pool.yourPositions">Your positions</Trans> <Trans>Your positions</Trans>
{positions && ' (' + positions.length + ')'} {positions && ' (' + positions.length + ')'}
</div> </div>
<div> <div>
<Trans id="pool.priceRange">Price range</Trans> <Trans>Price range</Trans>
</div> </div>
</DesktopHeader> </DesktopHeader>
<MobileHeader> <MobileHeader>
<Trans id="pool.yourPositions">Your positions</Trans> <Trans>Your positions</Trans>
</MobileHeader> </MobileHeader>
{positions.map((p) => { {positions.map((p) => {
return <PositionListItem key={p.tokenId.toString()} positionDetails={p} /> return <PositionListItem key={p.tokenId.toString()} positionDetails={p} />
......
...@@ -96,10 +96,10 @@ export const PositionPreview = ({ ...@@ -96,10 +96,10 @@ export const PositionPreview = ({
<Break /> <Break />
<RowBetween> <RowBetween>
<TYPE.label> <TYPE.label>
<Trans id="pools.labels.feeTier">Fee Tier</Trans> <Trans>Fee Tier</Trans>
</TYPE.label> </TYPE.label>
<TYPE.label> <TYPE.label>
<Trans id="pools.labels.feeTierValue">{position?.pool?.fee / 10000}%</Trans> <Trans>{position?.pool?.fee / 10000}%</Trans>
</TYPE.label> </TYPE.label>
</RowBetween> </RowBetween>
</AutoColumn> </AutoColumn>
...@@ -119,18 +119,16 @@ export const PositionPreview = ({ ...@@ -119,18 +119,16 @@ export const PositionPreview = ({
<LightCard width="48%" padding="8px"> <LightCard width="48%" padding="8px">
<AutoColumn gap="4px" justify="center"> <AutoColumn gap="4px" justify="center">
<TYPE.main fontSize="12px"> <TYPE.main fontSize="12px">
<Trans id="pools.minPriceLabel">Min Price</Trans> <Trans>Min Price</Trans>
</TYPE.main> </TYPE.main>
<TYPE.mediumHeader textAlign="center">{`${priceLower.toSignificant(5)}`}</TYPE.mediumHeader> <TYPE.mediumHeader textAlign="center">{`${priceLower.toSignificant(5)}`}</TYPE.mediumHeader>
<TYPE.main textAlign="center" fontSize="12px"> <TYPE.main textAlign="center" fontSize="12px">
<Trans id="currencies.denominated"> <Trans>
{quoteCurrency.symbol} per {baseCurrency.symbol} {quoteCurrency.symbol} per {baseCurrency.symbol}
</Trans> </Trans>
</TYPE.main> </TYPE.main>
<TYPE.small textAlign="center" color={theme.text3} style={{ marginTop: '4px' }}> <TYPE.small textAlign="center" color={theme.text3} style={{ marginTop: '4px' }}>
<Trans id="pools.minMaxPriceHint"> <Trans>Your position will be 100% composed of {baseCurrency?.symbol} at this price</Trans>
Your position will be 100% composed of {baseCurrency?.symbol} at this price
</Trans>
</TYPE.small> </TYPE.small>
</AutoColumn> </AutoColumn>
</LightCard> </LightCard>
...@@ -138,18 +136,16 @@ export const PositionPreview = ({ ...@@ -138,18 +136,16 @@ export const PositionPreview = ({
<LightCard width="48%" padding="8px"> <LightCard width="48%" padding="8px">
<AutoColumn gap="4px" justify="center"> <AutoColumn gap="4px" justify="center">
<TYPE.main fontSize="12px"> <TYPE.main fontSize="12px">
<Trans id="pools.maxPrice">Max Price</Trans> <Trans>Max Price</Trans>
</TYPE.main> </TYPE.main>
<TYPE.mediumHeader textAlign="center">{`${priceUpper.toSignificant(5)}`}</TYPE.mediumHeader> <TYPE.mediumHeader textAlign="center">{`${priceUpper.toSignificant(5)}`}</TYPE.mediumHeader>
<TYPE.main textAlign="center" fontSize="12px"> <TYPE.main textAlign="center" fontSize="12px">
<Trans id="currencies.denominated"> <Trans>
{quoteCurrency.symbol} per {baseCurrency.symbol} {quoteCurrency.symbol} per {baseCurrency.symbol}
</Trans> </Trans>
</TYPE.main> </TYPE.main>
<TYPE.small textAlign="center" color={theme.text3} style={{ marginTop: '4px' }}> <TYPE.small textAlign="center" color={theme.text3} style={{ marginTop: '4px' }}>
<Trans id="pools.minMaxPriceHint"> <Trans>Your position will be 100% composed of {quoteCurrency?.symbol} at this price</Trans>
Your position will be 100% composed of {quoteCurrency?.symbol} at this price
</Trans>
</TYPE.small> </TYPE.small>
</AutoColumn> </AutoColumn>
</LightCard> </LightCard>
...@@ -157,11 +153,11 @@ export const PositionPreview = ({ ...@@ -157,11 +153,11 @@ export const PositionPreview = ({
<LightCard padding="12px "> <LightCard padding="12px ">
<AutoColumn gap="4px" justify="center"> <AutoColumn gap="4px" justify="center">
<TYPE.main fontSize="12px"> <TYPE.main fontSize="12px">
<Trans id="pools.currentPrice">Current price</Trans> <Trans>Current price</Trans>
</TYPE.main> </TYPE.main>
<TYPE.mediumHeader>{`${price.toSignificant(5)} `}</TYPE.mediumHeader> <TYPE.mediumHeader>{`${price.toSignificant(5)} `}</TYPE.mediumHeader>
<TYPE.main textAlign="center" fontSize="12px"> <TYPE.main textAlign="center" fontSize="12px">
<Trans id="currencies.denominated"> <Trans>
{quoteCurrency.symbol} per {baseCurrency.symbol} {quoteCurrency.symbol} per {baseCurrency.symbol}
</Trans> </Trans>
</TYPE.main> </TYPE.main>
......
...@@ -171,7 +171,7 @@ export function CurrencySearch({ ...@@ -171,7 +171,7 @@ export function CurrencySearch({
<PaddedColumn gap="16px"> <PaddedColumn gap="16px">
<RowBetween> <RowBetween>
<Text fontWeight={500} fontSize={16}> <Text fontWeight={500} fontSize={16}>
<Trans id="currencies.search.selectToken">Select a token</Trans> <Trans>Select a token</Trans>
</Text> </Text>
<CloseIcon onClick={onDismiss} /> <CloseIcon onClick={onDismiss} />
</RowBetween> </RowBetween>
...@@ -179,7 +179,7 @@ export function CurrencySearch({ ...@@ -179,7 +179,7 @@ export function CurrencySearch({
<SearchInput <SearchInput
type="text" type="text"
id="token-search-input" id="token-search-input"
placeholder={t({ id: 'currencies.search.placeholder', message: 'Search name or paste address' })} placeholder={t`Search name or paste address`}
autoComplete="off" autoComplete="off"
value={searchQuery} value={searchQuery}
ref={inputRef as RefObject<HTMLInputElement>} ref={inputRef as RefObject<HTMLInputElement>}
...@@ -217,7 +217,7 @@ export function CurrencySearch({ ...@@ -217,7 +217,7 @@ export function CurrencySearch({
) : ( ) : (
<Column style={{ padding: '20px', height: '100%' }}> <Column style={{ padding: '20px', height: '100%' }}>
<TYPE.main color={theme.text3} textAlign="center" mb="20px"> <TYPE.main color={theme.text3} textAlign="center" mb="20px">
<Trans id="currencies.search.noResults">No results found.</Trans> <Trans>No results found.</Trans>
</TYPE.main> </TYPE.main>
</Column> </Column>
)} )}
...@@ -229,7 +229,7 @@ export function CurrencySearch({ ...@@ -229,7 +229,7 @@ export function CurrencySearch({
<Edit /> <Edit />
</IconWrapper> </IconWrapper>
<TYPE.main color={theme.blue1}> <TYPE.main color={theme.blue1}>
<Trans id="tokenLists.manage">Manage Token Lists</Trans> <Trans>Manage Token Lists</Trans>
</TYPE.main> </TYPE.main>
</RowFixed> </RowFixed>
</ButtonText> </ButtonText>
......
...@@ -82,7 +82,7 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro ...@@ -82,7 +82,7 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro
<RowBetween> <RowBetween>
<ArrowLeft style={{ cursor: 'pointer' }} onClick={() => setModalView(CurrencyModalView.manage)} /> <ArrowLeft style={{ cursor: 'pointer' }} onClick={() => setModalView(CurrencyModalView.manage)} />
<TYPE.mediumHeader> <TYPE.mediumHeader>
<Trans id="tokenLists.importList">Import List</Trans> <Trans>Import List</Trans>
</TYPE.mediumHeader> </TYPE.mediumHeader>
<CloseIcon onClick={onDismiss} /> <CloseIcon onClick={onDismiss} />
</RowBetween> </RowBetween>
...@@ -101,7 +101,7 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro ...@@ -101,7 +101,7 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro
</TYPE.body> </TYPE.body>
<TextDot /> <TextDot />
<TYPE.main fontSize={'16px'} ml="6px"> <TYPE.main fontSize={'16px'} ml="6px">
<Trans id="tokensLists.numberOfTokens">{list.tokens.length} tokens</Trans> <Trans>{list.tokens.length} tokens</Trans>
</TYPE.main> </TYPE.main>
</RowFixed> </RowFixed>
<ExternalLink href={`https://tokenlists.org/token-list?url=${listURL}`}> <ExternalLink href={`https://tokenlists.org/token-list?url=${listURL}`}>
...@@ -117,22 +117,20 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro ...@@ -117,22 +117,20 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro
<AutoColumn justify="center" style={{ textAlign: 'center', gap: '16px', marginBottom: '12px' }}> <AutoColumn justify="center" style={{ textAlign: 'center', gap: '16px', marginBottom: '12px' }}>
<AlertTriangle stroke={theme.red1} size={32} /> <AlertTriangle stroke={theme.red1} size={32} />
<TYPE.body fontWeight={500} fontSize={20} color={theme.red1}> <TYPE.body fontWeight={500} fontSize={20} color={theme.red1}>
<Trans id="tokenLists.importWarning">Import at your own risk</Trans> <Trans>Import at your own risk</Trans>
</TYPE.body> </TYPE.body>
</AutoColumn> </AutoColumn>
<AutoColumn style={{ textAlign: 'center', gap: '16px', marginBottom: '12px' }}> <AutoColumn style={{ textAlign: 'center', gap: '16px', marginBottom: '12px' }}>
<TYPE.body fontWeight={500} color={theme.red1}> <TYPE.body fontWeight={500} color={theme.red1}>
<Trans id="tokenLists.importHint1"> <Trans>
By adding this list you are implicitly trusting that the data is correct. Anyone can create a list, By adding this list you are implicitly trusting that the data is correct. Anyone can create a list,
including creating fake versions of existing lists and lists that claim to represent projects that do including creating fake versions of existing lists and lists that claim to represent projects that do
not have one. not have one.
</Trans> </Trans>
</TYPE.body> </TYPE.body>
<TYPE.body fontWeight={600} color={theme.red1}> <TYPE.body fontWeight={600} color={theme.red1}>
<Trans id="tokenLists.importHint2"> <Trans>If you purchase a token from this list, you may not be able to sell it back.</Trans>
If you purchase a token from this list, you may not be able to sell it back.
</Trans>
</TYPE.body> </TYPE.body>
</AutoColumn> </AutoColumn>
<AutoRow justify="center" style={{ cursor: 'pointer' }} onClick={() => setConfirmed(!confirmed)}> <AutoRow justify="center" style={{ cursor: 'pointer' }} onClick={() => setConfirmed(!confirmed)}>
...@@ -143,7 +141,7 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro ...@@ -143,7 +141,7 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro
onChange={() => setConfirmed(!confirmed)} onChange={() => setConfirmed(!confirmed)}
/> />
<TYPE.body ml="10px" fontSize="16px" color={theme.red1} fontWeight={500}> <TYPE.body ml="10px" fontSize="16px" color={theme.red1} fontWeight={500}>
<Trans id="common.IUnderstand">I understand</Trans> <Trans>I understand</Trans>
</TYPE.body> </TYPE.body>
</AutoRow> </AutoRow>
</Card> </Card>
...@@ -155,7 +153,7 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro ...@@ -155,7 +153,7 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro
padding="10px 1rem" padding="10px 1rem"
onClick={handleAddList} onClick={handleAddList}
> >
<Trans id="tokenLists.buttons.import">Import</Trans> <Trans>Import</Trans>
</ButtonPrimary> </ButtonPrimary>
{addError ? ( {addError ? (
<TYPE.error title={addError} style={{ textOverflow: 'ellipsis', overflow: 'hidden' }} error> <TYPE.error title={addError} style={{ textOverflow: 'ellipsis', overflow: 'hidden' }} error>
......
...@@ -58,7 +58,7 @@ export default function Web3ReactManager({ children }: { children: JSX.Element } ...@@ -58,7 +58,7 @@ export default function Web3ReactManager({ children }: { children: JSX.Element }
return ( return (
<MessageWrapper> <MessageWrapper>
<Message> <Message>
<Trans id="errors.unknown"> <Trans>
Oops! An unknown error occurred. Please refresh the page, or visit from another browser or device. Oops! An unknown error occurred. Please refresh the page, or visit from another browser or device.
</Trans> </Trans>
</Message> </Message>
......
...@@ -125,11 +125,7 @@ function newTransactionsFirst(a: TransactionDetails, b: TransactionDetails) { ...@@ -125,11 +125,7 @@ function newTransactionsFirst(a: TransactionDetails, b: TransactionDetails) {
function Sock() { function Sock() {
return ( return (
<span <span role="img" aria-label={t`has socks emoji`} style={{ marginTop: -4, marginBottom: -4 }}>
role="img"
aria-label={t({ id: 'wallet.hasSocks', message: 'has socks emoji' })}
style={{ marginTop: -4, marginBottom: -4 }}
>
🧦 🧦
</span> </span>
) )
...@@ -191,7 +187,7 @@ function Web3StatusInner() { ...@@ -191,7 +187,7 @@ function Web3StatusInner() {
{hasPendingTransactions ? ( {hasPendingTransactions ? (
<RowBetween> <RowBetween>
<Text> <Text>
<Trans id="transactions.pending">{pending?.length} Pending</Trans> <Trans>{pending?.length} Pending</Trans>
</Text>{' '} </Text>{' '}
<Loader stroke="white" /> <Loader stroke="white" />
</RowBetween> </RowBetween>
...@@ -208,18 +204,14 @@ function Web3StatusInner() { ...@@ -208,18 +204,14 @@ function Web3StatusInner() {
return ( return (
<Web3StatusError onClick={toggleWalletModal}> <Web3StatusError onClick={toggleWalletModal}>
<NetworkIcon /> <NetworkIcon />
<Text> <Text>{error instanceof UnsupportedChainIdError ? t`Wrong Network` : t`Error`}</Text>
{error instanceof UnsupportedChainIdError
? t({ id: 'error.wrongNetwork', message: 'Wrong Network' })
: t({ id: 'error.generic', message: 'Error' })}
</Text>
</Web3StatusError> </Web3StatusError>
) )
} else { } else {
return ( return (
<Web3StatusConnect id="connect-wallet" onClick={toggleWalletModal} faded={!account}> <Web3StatusConnect id="connect-wallet" onClick={toggleWalletModal} faded={!account}>
<Text> <Text>
<Trans id="wallet.connectLongForm">Connect to a wallet</Trans> <Trans>Connect to a wallet</Trans>
</Text> </Text>
</Web3StatusConnect> </Web3StatusConnect>
) )
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -259,14 +259,8 @@ export default function AddLiquidity({ ...@@ -259,14 +259,8 @@ export default function AddLiquidity({
setAttemptingTxn(false) setAttemptingTxn(false)
addTransaction(response, { addTransaction(response, {
summary: noLiquidity summary: noLiquidity
? t({ ? t`Create pool and add ${currencyA?.symbol}/${currencyB?.symbol} V3 liquidity`
id: 'transactions.summary.createPoolAndAddLiquidity', : t`Add ${currencyA?.symbol}/${currencyB?.symbol} V3 liquidity`,
message: `Create pool and add ${currencyA?.symbol}/${currencyB?.symbol} V3 liquidity`,
})
: t({
id: 'transactions.summary.addLiquidity',
message: `Add ${currencyA?.symbol}/${currencyB?.symbol} V3 liquidity`,
}),
}) })
setTxHash(response.hash) setTxHash(response.hash)
ReactGA.event({ ReactGA.event({
...@@ -414,7 +408,7 @@ export default function AddLiquidity({ ...@@ -414,7 +408,7 @@ export default function AddLiquidity({
bottomContent={() => ( bottomContent={() => (
<ButtonPrimary style={{ marginTop: '1rem' }} onClick={onAdd}> <ButtonPrimary style={{ marginTop: '1rem' }} onClick={onAdd}>
<Text fontWeight={500} fontSize={20}> <Text fontWeight={500} fontSize={20}>
<Trans id="transactions.confirmation.button">Add</Trans> <Trans>Add</Trans>
</Text> </Text>
</ButtonPrimary> </ButtonPrimary>
)} )}
...@@ -436,11 +430,11 @@ export default function AddLiquidity({ ...@@ -436,11 +430,11 @@ export default function AddLiquidity({
<AutoColumn gap="md"> <AutoColumn gap="md">
<RowBetween paddingBottom="20px"> <RowBetween paddingBottom="20px">
<TYPE.label> <TYPE.label>
<Trans id="addLiquidity.labels.selectPair">Select pair</Trans> <Trans>Select pair</Trans>
</TYPE.label> </TYPE.label>
<ButtonText onClick={clearAll}> <ButtonText onClick={clearAll}>
<TYPE.blue fontSize="12px"> <TYPE.blue fontSize="12px">
<Trans id="common.clearAll">Clear All</Trans> <Trans>Clear All</Trans>
</TYPE.blue> </TYPE.blue>
</ButtonText> </ButtonText>
</RowBetween> </RowBetween>
...@@ -479,11 +473,7 @@ export default function AddLiquidity({ ...@@ -479,11 +473,7 @@ export default function AddLiquidity({
)} )}
{hasExistingPosition && existingPosition ? ( {hasExistingPosition && existingPosition ? (
<PositionPreview <PositionPreview position={existingPosition} title={t`Selected Range`} inRange={!outOfRange} />
position={existingPosition}
title={t({ id: 'addLiquidity.labels.selectedRange', message: 'Selected Range' })}
inRange={!outOfRange}
/>
) : ( ) : (
<> <>
<FeeSelector <FeeSelector
...@@ -497,7 +487,7 @@ export default function AddLiquidity({ ...@@ -497,7 +487,7 @@ export default function AddLiquidity({
<AutoColumn gap="md"> <AutoColumn gap="md">
<RowBetween> <RowBetween>
<TYPE.label> <TYPE.label>
<Trans id="addLiquidity.labels.selectStartingPrice">Set Starting Price</Trans> <Trans>Set Starting Price</Trans>
</TYPE.label> </TYPE.label>
{baseCurrency && quoteCurrency ? ( {baseCurrency && quoteCurrency ? (
<RateToggle <RateToggle
...@@ -525,7 +515,7 @@ export default function AddLiquidity({ ...@@ -525,7 +515,7 @@ export default function AddLiquidity({
</OutlineCard> </OutlineCard>
<RowBetween style={{ backgroundColor: theme.bg1, padding: '12px', borderRadius: '12px' }}> <RowBetween style={{ backgroundColor: theme.bg1, padding: '12px', borderRadius: '12px' }}>
<TYPE.main> <TYPE.main>
<Trans id="addLiquidity.labels.currentPrice">Current {baseCurrency?.symbol} Price:</Trans> <Trans>Current {baseCurrency?.symbol} Price:</Trans>
</TYPE.main> </TYPE.main>
<TYPE.main> <TYPE.main>
{price ? ( {price ? (
...@@ -571,7 +561,7 @@ export default function AddLiquidity({ ...@@ -571,7 +561,7 @@ export default function AddLiquidity({
<DynamicSection gap="md" disabled={!feeAmount || invalidPool || (noLiquidity && !startPriceTypedValue)}> <DynamicSection gap="md" disabled={!feeAmount || invalidPool || (noLiquidity && !startPriceTypedValue)}>
<RowBetween> <RowBetween>
<TYPE.label> <TYPE.label>
<Trans id="addLiquidity.labels.selectLiquidityRange">Set Price Range</Trans> <Trans>Set Price Range</Trans>
</TYPE.label> </TYPE.label>
{baseCurrency && quoteCurrency ? ( {baseCurrency && quoteCurrency ? (
...@@ -637,7 +627,7 @@ export default function AddLiquidity({ ...@@ -637,7 +627,7 @@ export default function AddLiquidity({
<RowBetween> <RowBetween>
<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 id="inactiveRangeWarning"> <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 your
range. range.
</Trans> </Trans>
...@@ -651,9 +641,7 @@ export default function AddLiquidity({ ...@@ -651,9 +641,7 @@ export default function AddLiquidity({
<RowBetween> <RowBetween>
<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 id="error.invalidRangeWarning"> <Trans>Invalid range selected. The min price must be lower than the max price.</Trans>
Invalid range selected. The min price must be lower than the max price.
</Trans>
</TYPE.yellow> </TYPE.yellow>
</RowBetween> </RowBetween>
</YellowCard> </YellowCard>
...@@ -666,11 +654,7 @@ export default function AddLiquidity({ ...@@ -666,11 +654,7 @@ export default function AddLiquidity({
disabled={tickLower === undefined || tickUpper === undefined || invalidPool || invalidRange} disabled={tickLower === undefined || tickUpper === undefined || invalidPool || invalidRange}
> >
<AutoColumn gap="md"> <AutoColumn gap="md">
<TYPE.label> <TYPE.label>{hasExistingPosition ? 'Add more liquidity' : t`Deposit Amounts`}</TYPE.label>
{hasExistingPosition
? 'Add more liquidity'
: t({ id: 'liquidity.depositAmounts', message: 'Deposit Amounts' })}
</TYPE.label>
<CurrencyInputPanel <CurrencyInputPanel
value={formattedAmounts[Field.CURRENCY_A]} value={formattedAmounts[Field.CURRENCY_A]}
...@@ -705,12 +689,12 @@ export default function AddLiquidity({ ...@@ -705,12 +689,12 @@ export default function AddLiquidity({
{addIsUnsupported ? ( {addIsUnsupported ? (
<ButtonPrimary disabled={true} borderRadius="12px" padding={'12px'}> <ButtonPrimary disabled={true} borderRadius="12px" padding={'12px'}>
<TYPE.main mb="4px"> <TYPE.main mb="4px">
<Trans id="error.unsupportedAsset">Unsupported Asset</Trans> <Trans>Unsupported Asset</Trans>
</TYPE.main> </TYPE.main>
</ButtonPrimary> </ButtonPrimary>
) : !account ? ( ) : !account ? (
<ButtonLight onClick={toggleWalletModal} borderRadius="12px" padding={'12px'}> <ButtonLight onClick={toggleWalletModal} borderRadius="12px" padding={'12px'}>
<Trans id="wallet.connect">Connect wallet</Trans> <Trans>Connect wallet</Trans>
</ButtonLight> </ButtonLight>
) : ( ) : (
<AutoColumn gap={'md'}> <AutoColumn gap={'md'}>
......
This diff is collapsed.
...@@ -123,10 +123,10 @@ export default function CTACards() { ...@@ -123,10 +123,10 @@ export default function CTACards() {
<CTA1 href={'https://docs.uniswap.org/concepts/introduction/liquidity-user-guide'}> <CTA1 href={'https://docs.uniswap.org/concepts/introduction/liquidity-user-guide'}>
<ResponsiveColumn> <ResponsiveColumn>
<HeaderText> <HeaderText>
<Trans id="cta.v3.launchAnnouncement">Uniswap V3 is here!</Trans> <Trans>Uniswap V3 is here!</Trans>
</HeaderText> </HeaderText>
<TYPE.body fontWeight={300} style={{ alignItems: 'center', display: 'flex', maxWidth: '80%' }}> <TYPE.body fontWeight={300} style={{ alignItems: 'center', display: 'flex', maxWidth: '80%' }}>
<Trans id="cta.v3.walkthroughAndMigration">Check out our v3 LP walkthrough and migration guides.</Trans> <Trans>Check out our v3 LP walkthrough and migration guides.</Trans>
</TYPE.body> </TYPE.body>
<RowBetween align="flex-end"> <RowBetween align="flex-end">
<HeaderText></HeaderText> <HeaderText></HeaderText>
...@@ -137,10 +137,10 @@ export default function CTACards() { ...@@ -137,10 +137,10 @@ export default function CTACards() {
<CTA2 href={'https://info.uniswap.org/#/pools'}> <CTA2 href={'https://info.uniswap.org/#/pools'}>
<ResponsiveColumn> <ResponsiveColumn>
<HeaderText style={{ alignSelf: 'flex-start' }}> <HeaderText style={{ alignSelf: 'flex-start' }}>
<Trans id="cta.topPools">Top pools</Trans> <Trans>Top pools</Trans>
</HeaderText> </HeaderText>
<TYPE.body fontWeight={300} style={{ alignSelf: 'flex-start' }}> <TYPE.body fontWeight={300} style={{ alignSelf: 'flex-start' }}>
<Trans id="cta.v3.explore">Explore popular pools on Uniswap Analytics.</Trans> <Trans>Explore popular pools on Uniswap Analytics.</Trans>
</TYPE.body> </TYPE.body>
<HeaderText style={{ alignSelf: 'flex-end' }}></HeaderText> <HeaderText style={{ alignSelf: 'flex-end' }}></HeaderText>
</ResponsiveColumn> </ResponsiveColumn>
......
This diff is collapsed.
...@@ -129,7 +129,7 @@ export default function Pool() { ...@@ -129,7 +129,7 @@ export default function Pool() {
content: ( content: (
<MenuItem> <MenuItem>
<PlusCircle size={16} style={{ marginRight: '12px' }} /> <PlusCircle size={16} style={{ marginRight: '12px' }} />
<Trans id="pools.menu.create">Create a pool</Trans> <Trans>Create a pool</Trans>
</MenuItem> </MenuItem>
), ),
link: '/add/ETH', link: '/add/ETH',
...@@ -139,7 +139,7 @@ export default function Pool() { ...@@ -139,7 +139,7 @@ export default function Pool() {
content: ( content: (
<MenuItem> <MenuItem>
<ChevronsRight size={16} style={{ marginRight: '12px' }} /> <ChevronsRight size={16} style={{ marginRight: '12px' }} />
<Trans id="pools.menu.migrate">Migrate</Trans> <Trans>Migrate</Trans>
</MenuItem> </MenuItem>
), ),
link: '/migrate/v2', link: '/migrate/v2',
...@@ -149,7 +149,7 @@ export default function Pool() { ...@@ -149,7 +149,7 @@ export default function Pool() {
content: ( content: (
<MenuItem> <MenuItem>
<Layers size={16} style={{ marginRight: '12px' }} /> <Layers size={16} style={{ marginRight: '12px' }} />
<Trans id="pools.menu.v2Liquidity">V2 liquidity</Trans> <Trans>V2 liquidity</Trans>
</MenuItem> </MenuItem>
), ),
link: '/pool/v2', link: '/pool/v2',
...@@ -159,7 +159,7 @@ export default function Pool() { ...@@ -159,7 +159,7 @@ export default function Pool() {
content: ( content: (
<MenuItem> <MenuItem>
<BookOpen size={16} style={{ marginRight: '12px' }} /> <BookOpen size={16} style={{ marginRight: '12px' }} />
<Trans id="pools.menu.learn">Learn</Trans> <Trans>Learn</Trans>
</MenuItem> </MenuItem>
), ),
link: 'https://docs.uniswap.org/', link: 'https://docs.uniswap.org/',
...@@ -176,7 +176,7 @@ export default function Pool() { ...@@ -176,7 +176,7 @@ export default function Pool() {
<TitleRow style={{ marginTop: '1rem' }} padding={'0'}> <TitleRow style={{ marginTop: '1rem' }} padding={'0'}>
<HideSmall> <HideSmall>
<TYPE.mediumHeader> <TYPE.mediumHeader>
<Trans id="pools.heading.poolsOverview">Pools Overview</Trans> <Trans>Pools Overview</Trans>
</TYPE.mediumHeader> </TYPE.mediumHeader>
</HideSmall> </HideSmall>
<ButtonRow> <ButtonRow>
...@@ -186,14 +186,14 @@ export default function Pool() { ...@@ -186,14 +186,14 @@ export default function Pool() {
ToggleUI={(props: any) => ( ToggleUI={(props: any) => (
<MoreOptionsButton {...props}> <MoreOptionsButton {...props}>
<TYPE.body style={{ alignItems: 'center', display: 'flex' }}> <TYPE.body style={{ alignItems: 'center', display: 'flex' }}>
<Trans id="pools.menu.more">More</Trans> <Trans>More</Trans>
<ChevronDown size={15} /> <ChevronDown size={15} />
</TYPE.body> </TYPE.body>
</MoreOptionsButton> </MoreOptionsButton>
)} )}
/> />
<ResponsiveButtonPrimary id="join-pool-button" as={Link} to="/add/ETH"> <ResponsiveButtonPrimary id="join-pool-button" as={Link} to="/add/ETH">
+ <Trans id="pools.buttons.newPosition">New Position</Trans> + <Trans>New Position</Trans>
</ResponsiveButtonPrimary> </ResponsiveButtonPrimary>
</ButtonRow> </ButtonRow>
</TitleRow> </TitleRow>
...@@ -203,7 +203,7 @@ export default function Pool() { ...@@ -203,7 +203,7 @@ export default function Pool() {
{closedPositions.length > 0 ? ( {closedPositions.length > 0 ? (
<ShowInactiveToggle> <ShowInactiveToggle>
<TYPE.darkGray> <TYPE.darkGray>
<Trans id="pools.toggle.hideClosedPositions">Hide closed positions</Trans> <Trans>Hide closed positions</Trans>
</TYPE.darkGray> </TYPE.darkGray>
<Toggle <Toggle
isActive={userHideClosedPositions} isActive={userHideClosedPositions}
...@@ -235,12 +235,12 @@ export default function Pool() { ...@@ -235,12 +235,12 @@ export default function Pool() {
<TYPE.mediumHeader color={theme.text3} textAlign="center"> <TYPE.mediumHeader color={theme.text3} textAlign="center">
<Inbox size={48} strokeWidth={1} style={{ marginBottom: '.5rem' }} /> <Inbox size={48} strokeWidth={1} style={{ marginBottom: '.5rem' }} />
<div> <div>
<Trans id="pools.emptyStateHint">Your V3 liquidity positions will appear here.</Trans> <Trans>Your V3 liquidity positions will appear here.</Trans>
</div> </div>
</TYPE.mediumHeader> </TYPE.mediumHeader>
{!account ? ( {!account ? (
<ButtonPrimary style={{ marginTop: '2em', padding: '8px 16px' }} onClick={toggleWalletModal}> <ButtonPrimary style={{ marginTop: '2em', padding: '8px 16px' }} onClick={toggleWalletModal}>
<Trans id="wallet.connect">Connect a wallet</Trans> <Trans>Connect a wallet</Trans>
</ButtonPrimary> </ButtonPrimary>
) : ( ) : (
<ButtonGray <ButtonGray
...@@ -249,7 +249,7 @@ export default function Pool() { ...@@ -249,7 +249,7 @@ export default function Pool() {
id="import-pool-link" id="import-pool-link"
style={{ marginTop: '2em', padding: '8px 16px', borderRadius: '12px', width: 'fit-content' }} style={{ marginTop: '2em', padding: '8px 16px', borderRadius: '12px', width: 'fit-content' }}
> >
<Trans id="pools.buttons.migrateV2Liquidity">Migrate V2 liquidity</Trans>?&nbsp;&nbsp; <Trans>Migrate V2 liquidity</Trans>?&nbsp;&nbsp;
<Download size={16} /> <Download size={16} />
</ButtonGray> </ButtonGray>
)} )}
...@@ -271,7 +271,7 @@ export default function Pool() { ...@@ -271,7 +271,7 @@ export default function Pool() {
> >
<Layers size={14} style={{ marginRight: '8px' }} /> <Layers size={14} style={{ marginRight: '8px' }} />
<Trans id="pools.buttons.viewV2Liquidity">View V2 Liquidity</Trans> <Trans>View V2 Liquidity</Trans>
</ButtonOutlined> </ButtonOutlined>
{positions && positions.length > 0 && ( {positions && positions.length > 0 && (
<ButtonOutlined <ButtonOutlined
...@@ -288,7 +288,7 @@ export default function Pool() { ...@@ -288,7 +288,7 @@ export default function Pool() {
> >
<ChevronsRight size={16} style={{ marginRight: '8px' }} /> <ChevronsRight size={16} style={{ marginRight: '8px' }} />
<Trans id="pools.buttons.migrateLiquidity">Migrate Liquidity</Trans> <Trans>Migrate Liquidity</Trans>
</ButtonOutlined> </ButtonOutlined>
)} )}
</RowFixed> </RowFixed>
......
...@@ -83,9 +83,9 @@ export default function PoolFinder() { ...@@ -83,9 +83,9 @@ export default function PoolFinder() {
<LightCard padding="45px 10px"> <LightCard padding="45px 10px">
<Text textAlign="center"> <Text textAlign="center">
{!account ? ( {!account ? (
<Trans id="pools.label.connectWalletToFindPools">Connect to a wallet to find pools</Trans> <Trans>Connect to a wallet to find pools</Trans>
) : ( ) : (
<Trans id="pools.labels.selectTokenToFindLiquidity">Select a token to find your liquidity.</Trans> <Trans>Select a token to find your liquidity.</Trans>
)} )}
</Text> </Text>
</LightCard> </LightCard>
...@@ -98,7 +98,7 @@ export default function PoolFinder() { ...@@ -98,7 +98,7 @@ export default function PoolFinder() {
<BlueCard> <BlueCard>
<AutoColumn gap="10px"> <AutoColumn gap="10px">
<TYPE.link fontWeight={400} color={'primaryText1'}> <TYPE.link fontWeight={400} color={'primaryText1'}>
<Trans id="pools.hint.toolHelperText"> <Trans>
<b>Tip:</b> Use this tool to find pairs that don&apos;t automatically appear in the interface. <b>Tip:</b> Use this tool to find pairs that don&apos;t automatically appear in the interface.
</Trans> </Trans>
</TYPE.link> </TYPE.link>
...@@ -119,7 +119,7 @@ export default function PoolFinder() { ...@@ -119,7 +119,7 @@ export default function PoolFinder() {
</Row> </Row>
) : ( ) : (
<Text fontWeight={500} fontSize={20} marginLeft={'12px'}> <Text fontWeight={500} fontSize={20} marginLeft={'12px'}>
<Trans id="currencies.search.selectToken">Select a token</Trans> <Trans>Select a token</Trans>
</Text> </Text>
)} )}
</ButtonDropdownLight> </ButtonDropdownLight>
...@@ -143,7 +143,7 @@ export default function PoolFinder() { ...@@ -143,7 +143,7 @@ export default function PoolFinder() {
</Row> </Row>
) : ( ) : (
<Text fontWeight={500} fontSize={20} marginLeft={'12px'}> <Text fontWeight={500} fontSize={20} marginLeft={'12px'}>
<Trans id="currencies.search.selectToken">Select a token</Trans> <Trans>Select a token</Trans>
</Text> </Text>
)} )}
</ButtonDropdownLight> </ButtonDropdownLight>
...@@ -153,11 +153,11 @@ export default function PoolFinder() { ...@@ -153,11 +153,11 @@ export default function PoolFinder() {
style={{ justifyItems: 'center', backgroundColor: '', padding: '12px 0px', borderRadius: '12px' }} style={{ justifyItems: 'center', backgroundColor: '', padding: '12px 0px', borderRadius: '12px' }}
> >
<Text textAlign="center" fontWeight={500}> <Text textAlign="center" fontWeight={500}>
<Trans id="pools.labels.poolFound">Pool Found!</Trans> <Trans>Pool Found!</Trans>
</Text> </Text>
<StyledInternalLink to={`/pool`}> <StyledInternalLink to={`/pool`}>
<Text textAlign="center"> <Text textAlign="center">
<Trans id="pools.buttons.manage">Manage this pool.</Trans> <Trans>Manage this pool.</Trans>
</Text> </Text>
</StyledInternalLink> </StyledInternalLink>
</ColumnCenter> </ColumnCenter>
...@@ -171,11 +171,11 @@ export default function PoolFinder() { ...@@ -171,11 +171,11 @@ export default function PoolFinder() {
<LightCard padding="45px 10px"> <LightCard padding="45px 10px">
<AutoColumn gap="sm" justify="center"> <AutoColumn gap="sm" justify="center">
<Text textAlign="center"> <Text textAlign="center">
<Trans id="pools.label.noLiquidityInPoolYet">You don’t have liquidity in this pool yet.</Trans> <Trans>You don’t have liquidity in this pool yet.</Trans>
</Text> </Text>
<StyledInternalLink to={`/add/${currencyId(currency0)}/${currencyId(currency1)}`}> <StyledInternalLink to={`/add/${currencyId(currency0)}/${currencyId(currency1)}`}>
<Text textAlign="center"> <Text textAlign="center">
<Trans id="pools.buttons.addLiquidityPoolFinder">Add liquidity.</Trans> <Trans>Add liquidity.</Trans>
</Text> </Text>
</StyledInternalLink> </StyledInternalLink>
</AutoColumn> </AutoColumn>
...@@ -185,10 +185,10 @@ export default function PoolFinder() { ...@@ -185,10 +185,10 @@ export default function PoolFinder() {
<LightCard padding="45px 10px"> <LightCard padding="45px 10px">
<AutoColumn gap="sm" justify="center"> <AutoColumn gap="sm" justify="center">
<Text textAlign="center"> <Text textAlign="center">
<Trans id="pools.error.noPoolFound">No pool found.</Trans> <Trans>No pool found.</Trans>
</Text> </Text>
<StyledInternalLink to={`/add/${currencyId(currency0)}/${currencyId(currency1)}`}> <StyledInternalLink to={`/add/${currencyId(currency0)}/${currencyId(currency1)}`}>
<Trans id="pools.buttons.createPool">Create pool.</Trans> <Trans>Create pool.</Trans>
</StyledInternalLink> </StyledInternalLink>
</AutoColumn> </AutoColumn>
</LightCard> </LightCard>
...@@ -196,7 +196,7 @@ export default function PoolFinder() { ...@@ -196,7 +196,7 @@ export default function PoolFinder() {
<LightCard padding="45px 10px"> <LightCard padding="45px 10px">
<AutoColumn gap="sm" justify="center"> <AutoColumn gap="sm" justify="center">
<Text textAlign="center" fontWeight={500}> <Text textAlign="center" fontWeight={500}>
<Trans id="pools.errors.invalidPair">Invalid pair.</Trans> <Trans>Invalid pair.</Trans>
</Text> </Text>
</AutoColumn> </AutoColumn>
</LightCard> </LightCard>
...@@ -204,7 +204,7 @@ export default function PoolFinder() { ...@@ -204,7 +204,7 @@ export default function PoolFinder() {
<LightCard padding="45px 10px"> <LightCard padding="45px 10px">
<AutoColumn gap="sm" justify="center"> <AutoColumn gap="sm" justify="center">
<Text textAlign="center"> <Text textAlign="center">
<Trans id="common.loading">Loading</Trans> <Trans>Loading</Trans>
<Dots /> <Dots />
</Text> </Text>
</AutoColumn> </AutoColumn>
......
...@@ -152,10 +152,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -152,10 +152,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
setTxnHash(response.hash) setTxnHash(response.hash)
setAttemptingTxn(false) setAttemptingTxn(false)
addTransaction(response, { addTransaction(response, {
summary: t({ summary: t`Remove ${liquidityValue0.currency.symbol}/${liquidityValue1.currency.symbol} V3 liquidity`,
id: 'transactions.summary.removeLiquidityV3',
message: `Remove ${liquidityValue0.currency.symbol}/${liquidityValue1.currency.symbol} V3 liquidity`,
}),
}) })
}) })
}) })
...@@ -190,19 +187,16 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -190,19 +187,16 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
setTxnHash('') setTxnHash('')
}, [onPercentSelectForSlider, txnHash]) }, [onPercentSelectForSlider, txnHash])
const pendingText = t({ const pendingText = `Removing ${liquidityValue0?.toSignificant(6)} ${
id: 'removeLiquidity.confirming.pending', liquidityValue0?.currency?.symbol
message: `Removing ${liquidityValue0?.toSignificant(6)} ${ } and ${liquidityValue1?.toSignificant(6)} ${liquidityValue1?.currency?.symbol}`
liquidityValue0?.currency?.symbol
} and ${liquidityValue1?.toSignificant(6)} ${liquidityValue1?.currency?.symbol}`,
})
function modalHeader() { function modalHeader() {
return ( return (
<AutoColumn gap={'sm'} style={{ padding: '16px' }}> <AutoColumn gap={'sm'} style={{ padding: '16px' }}>
<RowBetween align="flex-end"> <RowBetween align="flex-end">
<Text fontSize={16} fontWeight={500}> <Text fontSize={16} fontWeight={500}>
<Trans id="pool.pooledCurrency">Pooled {liquidityValue0?.currency?.symbol}:</Trans> <Trans>Pooled {liquidityValue0?.currency?.symbol}:</Trans>
</Text> </Text>
<RowFixed> <RowFixed>
<Text fontSize={16} fontWeight={500} marginLeft={'6px'}> <Text fontSize={16} fontWeight={500} marginLeft={'6px'}>
...@@ -213,7 +207,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -213,7 +207,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
</RowBetween> </RowBetween>
<RowBetween align="flex-end"> <RowBetween align="flex-end">
<Text fontSize={16} fontWeight={500}> <Text fontSize={16} fontWeight={500}>
<Trans id="pool.pooledCurrency">Pooled {liquidityValue1?.currency?.symbol}:</Trans> <Trans>Pooled {liquidityValue1?.currency?.symbol}:</Trans>
</Text> </Text>
<RowFixed> <RowFixed>
<Text fontSize={16} fontWeight={500} marginLeft={'6px'}> <Text fontSize={16} fontWeight={500} marginLeft={'6px'}>
...@@ -225,13 +219,11 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -225,13 +219,11 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
{feeValue0?.greaterThan(0) || feeValue1?.greaterThan(0) ? ( {feeValue0?.greaterThan(0) || feeValue1?.greaterThan(0) ? (
<> <>
<TYPE.italic fontSize={12} color={theme.text2} textAlign="left" padding={'8px 0 0 0'}> <TYPE.italic fontSize={12} color={theme.text2} textAlign="left" padding={'8px 0 0 0'}>
<Trans id="removeLiquidity.hints.collectFeesEarn"> <Trans>You will also collect fees earned from this position.</Trans>
You will also collect fees earned from this position.
</Trans>
</TYPE.italic> </TYPE.italic>
<RowBetween> <RowBetween>
<Text fontSize={16} fontWeight={500}> <Text fontSize={16} fontWeight={500}>
<Trans id="removeLiquidity.label.feesEarned">{feeValue0?.currency?.symbol} Fees Earned:</Trans> <Trans>{feeValue0?.currency?.symbol} Fees Earned:</Trans>
</Text> </Text>
<RowFixed> <RowFixed>
<Text fontSize={16} fontWeight={500} marginLeft={'6px'}> <Text fontSize={16} fontWeight={500} marginLeft={'6px'}>
...@@ -242,7 +234,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -242,7 +234,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<Text fontSize={16} fontWeight={500}> <Text fontSize={16} fontWeight={500}>
<Trans id="removeLiquidity.label.feesEarned">{feeValue1?.currency?.symbol} Fees Earned:</Trans> <Trans>{feeValue1?.currency?.symbol} Fees Earned:</Trans>
</Text> </Text>
<RowFixed> <RowFixed>
<Text fontSize={16} fontWeight={500} marginLeft={'6px'}> <Text fontSize={16} fontWeight={500} marginLeft={'6px'}>
...@@ -254,7 +246,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -254,7 +246,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
</> </>
) : null} ) : null}
<ButtonPrimary mt="16px" onClick={burn}> <ButtonPrimary mt="16px" onClick={burn}>
<Trans id="buttons.remove">Remove</Trans> <Trans>Remove</Trans>
</ButtonPrimary> </ButtonPrimary>
</AutoColumn> </AutoColumn>
) )
...@@ -269,7 +261,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -269,7 +261,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
hash={txnHash ?? ''} hash={txnHash ?? ''}
content={() => ( content={() => (
<ConfirmationModalContent <ConfirmationModalContent
title={t({ id: 'removeLiquidity.labels.removeLiquidity', message: 'Remove Liquidity' })} title={t`Remove Liquidity`}
onDismiss={handleDismissConfirmation} onDismiss={handleDismissConfirmation}
topContent={modalHeader} topContent={modalHeader}
/> />
...@@ -304,24 +296,24 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -304,24 +296,24 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
<LightCard> <LightCard>
<AutoColumn gap="md"> <AutoColumn gap="md">
<TYPE.main fontWeight={400}> <TYPE.main fontWeight={400}>
<Trans id="labels.amount">Amount</Trans> <Trans>Amount</Trans>
</TYPE.main> </TYPE.main>
<RowBetween> <RowBetween>
<ResponsiveHeaderText> <ResponsiveHeaderText>
<Trans id="removeLiquidity.labels.percentForSlider">{percentForSlider}%</Trans> <Trans>{percentForSlider}%</Trans>
</ResponsiveHeaderText> </ResponsiveHeaderText>
<AutoRow gap="4px" justify="flex-end"> <AutoRow gap="4px" justify="flex-end">
<SmallMaxButton onClick={() => onPercentSelect(25)} width="20%"> <SmallMaxButton onClick={() => onPercentSelect(25)} width="20%">
<Trans id="number.25Percent">25%</Trans> <Trans>25%</Trans>
</SmallMaxButton> </SmallMaxButton>
<SmallMaxButton onClick={() => onPercentSelect(50)} width="20%"> <SmallMaxButton onClick={() => onPercentSelect(50)} width="20%">
<Trans id="number.50Percent">50%</Trans> <Trans>50%</Trans>
</SmallMaxButton> </SmallMaxButton>
<SmallMaxButton onClick={() => onPercentSelect(75)} width="20%"> <SmallMaxButton onClick={() => onPercentSelect(75)} width="20%">
<Trans id="number.75Percent">75%</Trans> <Trans>75%</Trans>
</SmallMaxButton> </SmallMaxButton>
<SmallMaxButton onClick={() => onPercentSelect(100)} width="20%"> <SmallMaxButton onClick={() => onPercentSelect(100)} width="20%">
<Trans id="labels.max">Max</Trans> <Trans>Max</Trans>
</SmallMaxButton> </SmallMaxButton>
</AutoRow> </AutoRow>
</RowBetween> </RowBetween>
...@@ -332,7 +324,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -332,7 +324,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
<AutoColumn gap="md"> <AutoColumn gap="md">
<RowBetween> <RowBetween>
<Text fontSize={16} fontWeight={500}> <Text fontSize={16} fontWeight={500}>
<Trans id="pool.pooledCurrency">Pooled {liquidityValue0?.currency?.symbol}:</Trans> <Trans>Pooled {liquidityValue0?.currency?.symbol}:</Trans>
</Text> </Text>
<RowFixed> <RowFixed>
<Text fontSize={16} fontWeight={500} marginLeft={'6px'}> <Text fontSize={16} fontWeight={500} marginLeft={'6px'}>
...@@ -343,7 +335,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -343,7 +335,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<Text fontSize={16} fontWeight={500}> <Text fontSize={16} fontWeight={500}>
<Trans id="pool.pooledCurrency">Pooled {liquidityValue1?.currency?.symbol}:</Trans> <Trans>Pooled {liquidityValue1?.currency?.symbol}:</Trans>
</Text> </Text>
<RowFixed> <RowFixed>
<Text fontSize={16} fontWeight={500} marginLeft={'6px'}> <Text fontSize={16} fontWeight={500} marginLeft={'6px'}>
...@@ -357,9 +349,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -357,9 +349,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
<Break /> <Break />
<RowBetween> <RowBetween>
<Text fontSize={16} fontWeight={500}> <Text fontSize={16} fontWeight={500}>
<Trans id="removeLiquidity.label.feesEarned"> <Trans>{feeValue0?.currency?.symbol} Fees Earned:</Trans>
{feeValue0?.currency?.symbol} Fees Earned:
</Trans>
</Text> </Text>
<RowFixed> <RowFixed>
<Text fontSize={16} fontWeight={500} marginLeft={'6px'}> <Text fontSize={16} fontWeight={500} marginLeft={'6px'}>
...@@ -392,7 +382,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -392,7 +382,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
liquidityValue1.currency.wrapped.equals(WETH9[liquidityValue1.currency.chainId])) ? ( liquidityValue1.currency.wrapped.equals(WETH9[liquidityValue1.currency.chainId])) ? (
<RowBetween> <RowBetween>
<TYPE.main> <TYPE.main>
<Trans id="pools.labels.collectFeesAsWETH">Collect as WETH</Trans> <Trans>Collect as WETH</Trans>
</TYPE.main> </TYPE.main>
<Toggle <Toggle
id="receive-as-weth" id="receive-as-weth"
...@@ -409,11 +399,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -409,11 +399,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
disabled={removed || percent === 0 || !liquidityValue0} disabled={removed || percent === 0 || !liquidityValue0}
onClick={() => setShowConfirm(true)} onClick={() => setShowConfirm(true)}
> >
{removed ? ( {removed ? <Trans>Inactive</Trans> : error ?? <Trans>Remove</Trans>}
<Trans id="labels.inactive">Inactive</Trans>
) : (
error ?? <Trans id="labels.remove">Remove</Trans>
)}
</ButtonConfirmed> </ButtonConfirmed>
</AutoColumn> </AutoColumn>
</div> </div>
......
This diff is collapsed.
This diff is collapsed.
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