Commit 352e0166 authored by Daniel James's avatar Daniel James Committed by GitHub

style: Add Deprecated prefix to ThemedText components (#4192)

* Add Deprecated prefix to ThemedText components

* Fix lint errors
parent 2a7b1e7f
...@@ -339,9 +339,9 @@ export default function AccountDetails({ ...@@ -339,9 +339,9 @@ export default function AccountDetails({
{!!pendingTransactions.length || !!confirmedTransactions.length ? ( {!!pendingTransactions.length || !!confirmedTransactions.length ? (
<LowerSection> <LowerSection>
<AutoRow mb={'1rem'} style={{ justifyContent: 'space-between' }}> <AutoRow mb={'1rem'} style={{ justifyContent: 'space-between' }}>
<ThemedText.Body> <ThemedText.DeprecatedBody>
<Trans>Recent Transactions</Trans> <Trans>Recent Transactions</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<LinkStyledButton onClick={clearAllTransactionsCallback}> <LinkStyledButton onClick={clearAllTransactionsCallback}>
<Trans>(clear all)</Trans> <Trans>(clear all)</Trans>
</LinkStyledButton> </LinkStyledButton>
...@@ -351,9 +351,9 @@ export default function AccountDetails({ ...@@ -351,9 +351,9 @@ export default function AccountDetails({
</LowerSection> </LowerSection>
) : ( ) : (
<LowerSection> <LowerSection>
<ThemedText.Body color={theme.deprecated_text1}> <ThemedText.DeprecatedBody color={theme.deprecated_text1}>
<Trans>Your transactions will appear here...</Trans> <Trans>Your transactions will appear here...</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</LowerSection> </LowerSection>
)} )}
</> </>
......
...@@ -108,9 +108,9 @@ export default function AddressInputPanel({ ...@@ -108,9 +108,9 @@ export default function AddressInputPanel({
<InputContainer> <InputContainer>
<AutoColumn gap="md"> <AutoColumn gap="md">
<RowBetween> <RowBetween>
<ThemedText.Black color={theme.deprecated_text2} fontWeight={500} fontSize={14}> <ThemedText.DeprecatedBlack color={theme.deprecated_text2} fontWeight={500} fontSize={14}>
{label ?? <Trans>Recipient</Trans>} {label ?? <Trans>Recipient</Trans>}
</ThemedText.Black> </ThemedText.DeprecatedBlack>
{address && chainId && ( {address && chainId && (
<ExternalLink <ExternalLink
href={getExplorerLink(chainId, name ?? address, ExplorerDataType.ADDRESS)} href={getExplorerLink(chainId, name ?? address, ExplorerDataType.ADDRESS)}
......
...@@ -33,22 +33,22 @@ export default function ConnectedAccountBlocked(props: ConnectedAccountBlockedPr ...@@ -33,22 +33,22 @@ export default function ConnectedAccountBlocked(props: ConnectedAccountBlockedPr
<Modal isOpen={props.isOpen} onDismiss={Function.prototype()}> <Modal isOpen={props.isOpen} onDismiss={Function.prototype()}>
<ContentWrapper> <ContentWrapper>
<WarningIcon /> <WarningIcon />
<ThemedText.LargeHeader lineHeight={2} marginBottom={1} marginTop={1}> <ThemedText.DeprecatedLargeHeader lineHeight={2} marginBottom={1} marginTop={1}>
<Trans>Blocked Address</Trans> <Trans>Blocked Address</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
<ThemedText.DarkGray fontSize={12} marginBottom={12}> <ThemedText.DeprecatedDarkGray fontSize={12} marginBottom={12}>
{props.account} {props.account}
</ThemedText.DarkGray> </ThemedText.DeprecatedDarkGray>
<ThemedText.Main fontSize={14} marginBottom={12}> <ThemedText.DeprecatedMain fontSize={14} marginBottom={12}>
<Trans>This address is blocked on the Uniswap Labs interface because it is associated with one or more</Trans>{' '} <Trans>This address is blocked on the Uniswap Labs interface because it is associated with one or more</Trans>{' '}
<ExternalLink href="https://help.uniswap.org/en/articles/6149816"> <ExternalLink href="https://help.uniswap.org/en/articles/6149816">
<Trans>blocked activities</Trans> <Trans>blocked activities</Trans>
</ExternalLink> </ExternalLink>
. .
</ThemedText.Main> </ThemedText.DeprecatedMain>
<ThemedText.Main fontSize={12}> <ThemedText.DeprecatedMain fontSize={12}>
<Trans>If you believe this is an error, please send an email including your address to </Trans>{' '} <Trans>If you believe this is an error, please send an email including your address to </Trans>{' '}
</ThemedText.Main> </ThemedText.DeprecatedMain>
<Copy iconSize={12} toCopy="compliance@uniswap.org" color={theme.deprecated_primary1} iconPosition="right"> <Copy iconSize={12} toCopy="compliance@uniswap.org" color={theme.deprecated_primary1} iconPosition="right">
compliance@uniswap.org compliance@uniswap.org
</Copy> </Copy>
......
...@@ -31,7 +31,7 @@ export function FiatValue({ ...@@ -31,7 +31,7 @@ export function FiatValue({
const visibleDecimalPlaces = p < 1.05 ? 4 : 2 const visibleDecimalPlaces = p < 1.05 ? 4 : 2
return ( return (
<ThemedText.Body fontSize={14} color={fiatValue ? theme.deprecated_text3 : theme.deprecated_text4}> <ThemedText.DeprecatedBody fontSize={14} color={fiatValue ? theme.deprecated_text3 : theme.deprecated_text4}>
{fiatValue ? ( {fiatValue ? (
<Trans> <Trans>
$ $
...@@ -51,6 +51,6 @@ export function FiatValue({ ...@@ -51,6 +51,6 @@ export function FiatValue({
</MouseoverTooltip> </MouseoverTooltip>
</span> </span>
) : null} ) : null}
</ThemedText.Body> </ThemedText.DeprecatedBody>
) )
} }
...@@ -232,9 +232,9 @@ export default function CurrencyInputPanel({ ...@@ -232,9 +232,9 @@ export default function CurrencyInputPanel({
<FixedContainer> <FixedContainer>
<AutoColumn gap="sm" justify="center"> <AutoColumn gap="sm" justify="center">
<Lock /> <Lock />
<ThemedText.Label fontSize="12px" textAlign="center" padding="0 12px"> <ThemedText.DeprecatedLabel fontSize="12px" textAlign="center" padding="0 12px">
<Trans>The market price is outside your specified price range. Single-asset deposit only.</Trans> <Trans>The market price is outside your specified price range. Single-asset deposit only.</Trans>
</ThemedText.Label> </ThemedText.DeprecatedLabel>
</AutoColumn> </AutoColumn>
</FixedContainer> </FixedContainer>
)} )}
...@@ -297,7 +297,7 @@ export default function CurrencyInputPanel({ ...@@ -297,7 +297,7 @@ export default function CurrencyInputPanel({
</LoadingOpacityContainer> </LoadingOpacityContainer>
{account ? ( {account ? (
<RowFixed style={{ height: '17px' }}> <RowFixed style={{ height: '17px' }}>
<ThemedText.Body <ThemedText.DeprecatedBody
onClick={onMax} onClick={onMax}
color={theme.deprecated_text3} color={theme.deprecated_text3}
fontWeight={500} fontWeight={500}
...@@ -311,7 +311,7 @@ export default function CurrencyInputPanel({ ...@@ -311,7 +311,7 @@ export default function CurrencyInputPanel({
<Trans>Balance: {formatCurrencyAmount(selectedCurrencyBalance, 4)}</Trans> <Trans>Balance: {formatCurrencyAmount(selectedCurrencyBalance, 4)}</Trans>
) )
) : null} ) : null}
</ThemedText.Body> </ThemedText.DeprecatedBody>
{showMaxButton && selectedCurrencyBalance ? ( {showMaxButton && selectedCurrencyBalance ? (
<TraceEvent <TraceEvent
events={[Event.onClick]} events={[Event.onClick]}
......
...@@ -101,13 +101,13 @@ export default class ErrorBoundary extends React.Component<PropsWithChildren<unk ...@@ -101,13 +101,13 @@ export default class ErrorBoundary extends React.Component<PropsWithChildren<unk
<BodyWrapper> <BodyWrapper>
<AutoColumn gap={'md'}> <AutoColumn gap={'md'}>
<SomethingWentWrongWrapper> <SomethingWentWrongWrapper>
<ThemedText.Label fontSize={24} fontWeight={600}> <ThemedText.DeprecatedLabel fontSize={24} fontWeight={600}>
<Trans>Something went wrong</Trans> <Trans>Something went wrong</Trans>
</ThemedText.Label> </ThemedText.DeprecatedLabel>
</SomethingWentWrongWrapper> </SomethingWentWrongWrapper>
<CodeBlockWrapper> <CodeBlockWrapper>
<code> <code>
<ThemedText.Main fontSize={10}>{error.stack}</ThemedText.Main> <ThemedText.DeprecatedMain fontSize={10}>{error.stack}</ThemedText.DeprecatedMain>
</code> </code>
</CodeBlockWrapper> </CodeBlockWrapper>
{IS_UNISWAP ? ( {IS_UNISWAP ? (
...@@ -120,18 +120,18 @@ export default class ErrorBoundary extends React.Component<PropsWithChildren<unk ...@@ -120,18 +120,18 @@ export default class ErrorBoundary extends React.Component<PropsWithChildren<unk
)}`} )}`}
target="_blank" target="_blank"
> >
<ThemedText.Link fontSize={16}> <ThemedText.DeprecatedLink fontSize={16}>
<Trans>Create an issue on GitHub</Trans> <Trans>Create an issue on GitHub</Trans>
<span></span> <span></span>
</ThemedText.Link> </ThemedText.DeprecatedLink>
</ExternalLink> </ExternalLink>
</LinkWrapper> </LinkWrapper>
<LinkWrapper> <LinkWrapper>
<ExternalLink id="get-support-on-discord" href="https://discord.gg/FCfyBSbCU5" target="_blank"> <ExternalLink id="get-support-on-discord" href="https://discord.gg/FCfyBSbCU5" target="_blank">
<ThemedText.Link fontSize={16}> <ThemedText.DeprecatedLink fontSize={16}>
<Trans>Get support on Discord</Trans> <Trans>Get support on Discord</Trans>
<span></span> <span></span>
</ThemedText.Link> </ThemedText.DeprecatedLink>
</ExternalLink> </ExternalLink>
</LinkWrapper> </LinkWrapper>
</AutoRow> </AutoRow>
......
...@@ -11,7 +11,7 @@ import { ThemedText } from 'theme' ...@@ -11,7 +11,7 @@ import { ThemedText } from 'theme'
import { FeeTierPercentageBadge } from './FeeTierPercentageBadge' import { FeeTierPercentageBadge } from './FeeTierPercentageBadge'
import { FEE_AMOUNT_DETAIL } from './shared' import { FEE_AMOUNT_DETAIL } from './shared'
const ResponsiveText = styled(ThemedText.Label)` const ResponsiveText = styled(ThemedText.DeprecatedLabel)`
line-height: 16px; line-height: 16px;
font-size: 14px; font-size: 14px;
...@@ -37,9 +37,9 @@ export function FeeOption({ feeAmount, active, poolState, distributions, onClick ...@@ -37,9 +37,9 @@ export function FeeOption({ feeAmount, active, poolState, distributions, onClick
<ResponsiveText> <ResponsiveText>
<Trans>{FEE_AMOUNT_DETAIL[feeAmount].label}%</Trans> <Trans>{FEE_AMOUNT_DETAIL[feeAmount].label}%</Trans>
</ResponsiveText> </ResponsiveText>
<ThemedText.Main fontWeight={400} fontSize="12px" textAlign="left"> <ThemedText.DeprecatedMain fontWeight={400} fontSize="12px" textAlign="left">
{FEE_AMOUNT_DETAIL[feeAmount].description} {FEE_AMOUNT_DETAIL[feeAmount].description}
</ThemedText.Main> </ThemedText.DeprecatedMain>
</AutoColumn> </AutoColumn>
{distributions && ( {distributions && (
......
...@@ -17,7 +17,7 @@ export function FeeTierPercentageBadge({ ...@@ -17,7 +17,7 @@ export function FeeTierPercentageBadge({
}) { }) {
return ( return (
<Badge> <Badge>
<ThemedText.Label fontSize={10}> <ThemedText.DeprecatedLabel fontSize={10}>
{!distributions || poolState === PoolState.NOT_EXISTS || poolState === PoolState.INVALID ? ( {!distributions || poolState === PoolState.NOT_EXISTS || poolState === PoolState.INVALID ? (
<Trans>Not created</Trans> <Trans>Not created</Trans>
) : distributions[feeAmount] !== undefined ? ( ) : distributions[feeAmount] !== undefined ? (
...@@ -25,7 +25,7 @@ export function FeeTierPercentageBadge({ ...@@ -25,7 +25,7 @@ export function FeeTierPercentageBadge({
) : ( ) : (
<Trans>No data</Trans> <Trans>No data</Trans>
)} )}
</ThemedText.Label> </ThemedText.DeprecatedLabel>
</Badge> </Badge>
) )
} }
...@@ -149,18 +149,18 @@ export default function FeeSelector({ ...@@ -149,18 +149,18 @@ export default function FeeSelector({
<AutoColumn id="add-liquidity-selected-fee"> <AutoColumn id="add-liquidity-selected-fee">
{!feeAmount ? ( {!feeAmount ? (
<> <>
<ThemedText.Label> <ThemedText.DeprecatedLabel>
<Trans>Fee tier</Trans> <Trans>Fee tier</Trans>
</ThemedText.Label> </ThemedText.DeprecatedLabel>
<ThemedText.Main fontWeight={400} fontSize="12px" textAlign="left"> <ThemedText.DeprecatedMain fontWeight={400} fontSize="12px" textAlign="left">
<Trans>The % you will earn in fees.</Trans> <Trans>The % you will earn in fees.</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</> </>
) : ( ) : (
<> <>
<ThemedText.Label className="selected-fee-label"> <ThemedText.DeprecatedLabel className="selected-fee-label">
<Trans>{FEE_AMOUNT_DETAIL[feeAmount].label}% fee tier</Trans> <Trans>{FEE_AMOUNT_DETAIL[feeAmount].label}% fee tier</Trans>
</ThemedText.Label> </ThemedText.DeprecatedLabel>
<Box style={{ width: 'fit-content', marginTop: '8px' }} className="selected-fee-percentage"> <Box style={{ width: 'fit-content', marginTop: '8px' }} className="selected-fee-percentage">
{distributions && ( {distributions && (
<FeeTierPercentageBadge <FeeTierPercentageBadge
......
...@@ -31,7 +31,7 @@ const StyledPolling = styled.div<{ warning: boolean }>` ...@@ -31,7 +31,7 @@ const StyledPolling = styled.div<{ warning: boolean }>`
display: none; display: none;
`} `}
` `
const StyledPollingNumber = styled(ThemedText.Small)<{ breathe: boolean; hovering: boolean }>` const StyledPollingNumber = styled(ThemedText.DeprecatedSmall)<{ breathe: boolean; hovering: boolean }>`
transition: opacity 0.25s ease; transition: opacity 0.25s ease;
opacity: ${({ breathe, hovering }) => (hovering ? 0.7 : breathe ? 1 : 0.5)}; opacity: ${({ breathe, hovering }) => (hovering ? 0.7 : breathe ? 1 : 0.5)};
:hover { :hover {
...@@ -143,7 +143,7 @@ export default function Polling() { ...@@ -143,7 +143,7 @@ export default function Polling() {
<ExternalLink href={'https://etherscan.io/gastracker'}> <ExternalLink href={'https://etherscan.io/gastracker'}>
{priceGwei ? ( {priceGwei ? (
<RowFixed style={{ marginRight: '8px' }}> <RowFixed style={{ marginRight: '8px' }}>
<ThemedText.Main fontSize="11px" mr="8px" color={theme.deprecated_text3}> <ThemedText.DeprecatedMain fontSize="11px" mr="8px" color={theme.deprecated_text3}>
<MouseoverTooltip <MouseoverTooltip
text={ text={
<Trans> <Trans>
...@@ -154,7 +154,7 @@ export default function Polling() { ...@@ -154,7 +154,7 @@ export default function Polling() {
> >
{priceGwei.toString()} <Trans>gwei</Trans> {priceGwei.toString()} <Trans>gwei</Trans>
</MouseoverTooltip> </MouseoverTooltip>
</ThemedText.Main> </ThemedText.DeprecatedMain>
<StyledGasDot /> <StyledGasDot />
</RowFixed> </RowFixed>
) : null} ) : null}
......
...@@ -316,7 +316,7 @@ export default function Header() { ...@@ -316,7 +316,7 @@ export default function Header() {
{availableClaim && !showClaimPopup && ( {availableClaim && !showClaimPopup && (
<UNIWrapper onClick={toggleClaimModal}> <UNIWrapper onClick={toggleClaimModal}>
<UNIAmount active={!!account && !availableClaim} style={{ pointerEvents: 'auto' }}> <UNIAmount active={!!account && !availableClaim} style={{ pointerEvents: 'auto' }}>
<ThemedText.White padding="0 2px"> <ThemedText.DeprecatedWhite padding="0 2px">
{claimTxn && !claimTxn?.receipt ? ( {claimTxn && !claimTxn?.receipt ? (
<Dots> <Dots>
<Trans>Claiming UNI</Trans> <Trans>Claiming UNI</Trans>
...@@ -324,7 +324,7 @@ export default function Header() { ...@@ -324,7 +324,7 @@ export default function Header() {
) : ( ) : (
<Trans>Claim UNI</Trans> <Trans>Claim UNI</Trans>
)} )}
</ThemedText.White> </ThemedText.DeprecatedWhite>
</UNIAmount> </UNIAmount>
<CardNoise /> <CardNoise />
</UNIWrapper> </UNIWrapper>
......
...@@ -57,13 +57,13 @@ const StyledInput = styled(NumericalInput)<{ usePercent?: boolean }>` ...@@ -57,13 +57,13 @@ const StyledInput = styled(NumericalInput)<{ usePercent?: boolean }>`
`}; `};
` `
const InputTitle = styled(ThemedText.Small)` const InputTitle = styled(ThemedText.DeprecatedSmall)`
color: ${({ theme }) => theme.deprecated_text2}; color: ${({ theme }) => theme.deprecated_text2};
font-size: 12px; font-size: 12px;
font-weight: 500; font-weight: 500;
` `
const ButtonLabel = styled(ThemedText.White)<{ disabled: boolean }>` const ButtonLabel = styled(ThemedText.DeprecatedWhite)<{ disabled: boolean }>`
color: ${({ theme, disabled }) => (disabled ? theme.deprecated_text2 : theme.deprecated_text1)} !important; color: ${({ theme, disabled }) => (disabled ? theme.deprecated_text2 : theme.deprecated_text1)} !important;
` `
......
...@@ -58,9 +58,9 @@ function InfoBox({ message, icon }: { message?: ReactNode; icon: ReactNode }) { ...@@ -58,9 +58,9 @@ function InfoBox({ message, icon }: { message?: ReactNode; icon: ReactNode }) {
<ColumnCenter style={{ height: '100%', justifyContent: 'center' }}> <ColumnCenter style={{ height: '100%', justifyContent: 'center' }}>
{icon} {icon}
{message && ( {message && (
<ThemedText.MediumHeader padding={10} marginTop="20px" textAlign="center"> <ThemedText.DeprecatedMediumHeader padding={10} marginTop="20px" textAlign="center">
{message} {message}
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
)} )}
</ColumnCenter> </ColumnCenter>
) )
......
...@@ -32,9 +32,9 @@ export function LoadingView({ children, onDismiss }: { children: any; onDismiss: ...@@ -32,9 +32,9 @@ export function LoadingView({ children, onDismiss }: { children: any; onDismiss:
</ConfirmedIcon> </ConfirmedIcon>
<AutoColumn gap="100px" justify={'center'}> <AutoColumn gap="100px" justify={'center'}>
{children} {children}
<ThemedText.SubHeader> <ThemedText.DeprecatedSubHeader>
<Trans>Confirm this transaction in your wallet</Trans> <Trans>Confirm this transaction in your wallet</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</AutoColumn> </AutoColumn>
</ConfirmOrLoadingWrapper> </ConfirmOrLoadingWrapper>
) )
...@@ -68,9 +68,9 @@ export function SubmittedView({ ...@@ -68,9 +68,9 @@ export function SubmittedView({
href={getExplorerLink(chainId, hash, ExplorerDataType.TRANSACTION)} href={getExplorerLink(chainId, hash, ExplorerDataType.TRANSACTION)}
style={{ marginLeft: '4px' }} style={{ marginLeft: '4px' }}
> >
<ThemedText.SubHeader> <ThemedText.DeprecatedSubHeader>
<Trans>View transaction on Explorer</Trans> <Trans>View transaction on Explorer</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</ExternalLink> </ExternalLink>
)} )}
</AutoColumn> </AutoColumn>
......
...@@ -94,7 +94,7 @@ export function AddRemoveTabs({ ...@@ -94,7 +94,7 @@ export function AddRemoveTabs({
> >
<StyledArrowLeft stroke={theme.deprecated_text2} /> <StyledArrowLeft stroke={theme.deprecated_text2} />
</StyledHistoryLink> </StyledHistoryLink>
<ThemedText.MediumHeader <ThemedText.DeprecatedMediumHeader
fontWeight={500} fontWeight={500}
fontSize={20} fontSize={20}
style={{ flex: '1', margin: 'auto', textAlign: children ? 'start' : 'center' }} style={{ flex: '1', margin: 'auto', textAlign: children ? 'start' : 'center' }}
...@@ -106,7 +106,7 @@ export function AddRemoveTabs({ ...@@ -106,7 +106,7 @@ export function AddRemoveTabs({
) : ( ) : (
<Trans>Remove Liquidity</Trans> <Trans>Remove Liquidity</Trans>
)} )}
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<Box style={{ marginRight: '.5rem' }}>{children}</Box> <Box style={{ marginRight: '.5rem' }}>{children}</Box>
<SettingsTab placeholderSlippage={defaultSlippage} /> <SettingsTab placeholderSlippage={defaultSlippage} />
</RowBetween> </RowBetween>
......
...@@ -98,10 +98,14 @@ export default function ClaimPopup() { ...@@ -98,10 +98,14 @@ export default function ClaimPopup() {
<StyledClose stroke="white" onClick={toggleShowClaimPopup} /> <StyledClose stroke="white" onClick={toggleShowClaimPopup} />
<AutoColumn style={{ padding: '2rem 0', zIndex: 10 }} justify="center"> <AutoColumn style={{ padding: '2rem 0', zIndex: 10 }} justify="center">
<UniToken width="48px" src={tokenLogo} />{' '} <UniToken width="48px" src={tokenLogo} />{' '}
<ThemedText.White style={{ marginTop: '1rem' }} fontSize={36} fontWeight={600}> <ThemedText.DeprecatedWhite style={{ marginTop: '1rem' }} fontSize={36} fontWeight={600}>
{unclaimedAmount?.toFixed(0, { groupSeparator: ',' } ?? '-')} UNI {unclaimedAmount?.toFixed(0, { groupSeparator: ',' } ?? '-')} UNI
</ThemedText.White> </ThemedText.DeprecatedWhite>
<ThemedText.White style={{ paddingTop: '1.25rem', textAlign: 'center' }} fontWeight={600} color="white"> <ThemedText.DeprecatedWhite
style={{ paddingTop: '1.25rem', textAlign: 'center' }}
fontWeight={600}
color="white"
>
<span role="img" aria-label="party"> <span role="img" aria-label="party">
🎉 🎉
</span>{' '} </span>{' '}
...@@ -109,12 +113,12 @@ export default function ClaimPopup() { ...@@ -109,12 +113,12 @@ export default function ClaimPopup() {
<span role="img" aria-label="party"> <span role="img" aria-label="party">
🎉 🎉
</span> </span>
</ThemedText.White> </ThemedText.DeprecatedWhite>
<ThemedText.SubHeader style={{ paddingTop: '0.5rem', textAlign: 'center' }} color="white"> <ThemedText.DeprecatedSubHeader style={{ paddingTop: '0.5rem', textAlign: 'center' }} color="white">
<Trans> <Trans>
Thanks for being part of the Uniswap community <Heart size={12} /> Thanks for being part of the Uniswap community <Heart size={12} />
</Trans> </Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</AutoColumn> </AutoColumn>
<AutoColumn style={{ zIndex: 10 }} justify="center"> <AutoColumn style={{ zIndex: 10 }} justify="center">
<ButtonPrimary padding="8px" $borderRadius="8px" width={'fit-content'} onClick={handleToggleSelfClaimModal}> <ButtonPrimary padding="8px" $borderRadius="8px" width={'fit-content'} onClick={handleToggleSelfClaimModal}>
......
...@@ -23,12 +23,12 @@ export default function FailedNetworkSwitchPopup({ chainId }: { chainId: Support ...@@ -23,12 +23,12 @@ export default function FailedNetworkSwitchPopup({ chainId }: { chainId: Support
<AlertCircle color={theme.deprecated_red1} size={24} /> <AlertCircle color={theme.deprecated_red1} size={24} />
</div> </div>
<AutoColumn gap="8px"> <AutoColumn gap="8px">
<ThemedText.Body fontWeight={500}> <ThemedText.DeprecatedBody fontWeight={500}>
<Trans> <Trans>
Failed to switch networks from the Uniswap Interface. In order to use Uniswap on {chainInfo.label}, you must Failed to switch networks from the Uniswap Interface. In order to use Uniswap on {chainInfo.label}, you must
change the network in your wallet. change the network in your wallet.
</Trans> </Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
</RowNoFlex> </RowNoFlex>
) )
......
...@@ -91,19 +91,19 @@ export default function SurveyPopup() { ...@@ -91,19 +91,19 @@ export default function SurveyPopup() {
<ExternalLink href="https://www.surveymonkey.com/r/YGWV9VD"> <ExternalLink href="https://www.surveymonkey.com/r/YGWV9VD">
<RowFixed> <RowFixed>
<MessageCircle stroke={theme.deprecated_black} size="20px" strokeWidth="1px" /> <MessageCircle stroke={theme.deprecated_black} size="20px" strokeWidth="1px" />
<ThemedText.White fontWeight={600} color={theme.deprecated_black} ml="6px"> <ThemedText.DeprecatedWhite fontWeight={600} color={theme.deprecated_black} ml="6px">
<Trans>Tell us what you think ↗</Trans> <Trans>Tell us what you think ↗</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</RowFixed> </RowFixed>
</ExternalLink> </ExternalLink>
<ThemedText.Black <ThemedText.DeprecatedBlack
style={{ zIndex: Z_INDEX.fixed }} style={{ zIndex: Z_INDEX.fixed }}
fontWeight={400} fontWeight={400}
fontSize="12px" fontSize="12px"
color={theme.deprecated_black} color={theme.deprecated_black}
> >
<Trans>Take a 10 minute survey to help us improve your experience in the Uniswap app.</Trans> <Trans>Take a 10 minute survey to help us improve your experience in the Uniswap app.</Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</Wrapper> </Wrapper>
)} )}
</> </>
......
...@@ -34,9 +34,9 @@ export default function TransactionPopup({ hash }: { hash: string }) { ...@@ -34,9 +34,9 @@ export default function TransactionPopup({ hash }: { hash: string }) {
)} )}
</div> </div>
<AutoColumn gap="8px"> <AutoColumn gap="8px">
<ThemedText.Body fontWeight={500}> <ThemedText.DeprecatedBody fontWeight={500}>
<TransactionSummary info={tx.info} /> <TransactionSummary info={tx.info} />
</ThemedText.Body> </ThemedText.DeprecatedBody>
{chainId && ( {chainId && (
<ExternalLink href={getExplorerLink(chainId, hash, ExplorerDataType.TRANSACTION)}> <ExternalLink href={getExplorerLink(chainId, hash, ExplorerDataType.TRANSACTION)}>
View on Explorer View on Explorer
......
...@@ -142,7 +142,7 @@ export function MinimalPositionCard({ pair, showUnwrapped = false, border }: Pos ...@@ -142,7 +142,7 @@ export function MinimalPositionCard({ pair, showUnwrapped = false, border }: Pos
</GreyCard> </GreyCard>
) : ( ) : (
<LightCard> <LightCard>
<ThemedText.SubHeader style={{ textAlign: 'center' }}> <ThemedText.DeprecatedSubHeader style={{ textAlign: 'center' }}>
<span role="img" aria-label="wizard-icon"> <span role="img" aria-label="wizard-icon">
⭐️ ⭐️
</span>{' '} </span>{' '}
...@@ -150,7 +150,7 @@ export function MinimalPositionCard({ pair, showUnwrapped = false, border }: Pos ...@@ -150,7 +150,7 @@ export function MinimalPositionCard({ pair, showUnwrapped = false, border }: Pos
By adding liquidity you&apos;ll earn 0.3% of all trades on this pair proportional to your share of the By adding liquidity you&apos;ll earn 0.3% of all trades on this pair proportional to your share of the
pool. Fees are added to the pool, accrue in real time and can be claimed by withdrawing your liquidity. pool. Fees are added to the pool, accrue in real time and can be claimed by withdrawing your liquidity.
</Trans>{' '} </Trans>{' '}
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</LightCard> </LightCard>
)} )}
</> </>
......
...@@ -70,9 +70,9 @@ export const PositionPreview = ({ ...@@ -70,9 +70,9 @@ export const PositionPreview = ({
size={24} size={24}
margin={true} margin={true}
/> />
<ThemedText.Label ml="10px" fontSize="24px"> <ThemedText.DeprecatedLabel ml="10px" fontSize="24px">
{currency0?.symbol} / {currency1?.symbol} {currency0?.symbol} / {currency1?.symbol}
</ThemedText.Label> </ThemedText.DeprecatedLabel>
</RowFixed> </RowFixed>
<RangeBadge removed={removed} inRange={inRange} /> <RangeBadge removed={removed} inRange={inRange} />
</RowBetween> </RowBetween>
...@@ -82,36 +82,36 @@ export const PositionPreview = ({ ...@@ -82,36 +82,36 @@ export const PositionPreview = ({
<RowBetween> <RowBetween>
<RowFixed> <RowFixed>
<CurrencyLogo currency={currency0} /> <CurrencyLogo currency={currency0} />
<ThemedText.Label ml="8px">{currency0?.symbol}</ThemedText.Label> <ThemedText.DeprecatedLabel ml="8px">{currency0?.symbol}</ThemedText.DeprecatedLabel>
</RowFixed> </RowFixed>
<RowFixed> <RowFixed>
<ThemedText.Label mr="8px">{position.amount0.toSignificant(4)}</ThemedText.Label> <ThemedText.DeprecatedLabel mr="8px">{position.amount0.toSignificant(4)}</ThemedText.DeprecatedLabel>
</RowFixed> </RowFixed>
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<RowFixed> <RowFixed>
<CurrencyLogo currency={currency1} /> <CurrencyLogo currency={currency1} />
<ThemedText.Label ml="8px">{currency1?.symbol}</ThemedText.Label> <ThemedText.DeprecatedLabel ml="8px">{currency1?.symbol}</ThemedText.DeprecatedLabel>
</RowFixed> </RowFixed>
<RowFixed> <RowFixed>
<ThemedText.Label mr="8px">{position.amount1.toSignificant(4)}</ThemedText.Label> <ThemedText.DeprecatedLabel mr="8px">{position.amount1.toSignificant(4)}</ThemedText.DeprecatedLabel>
</RowFixed> </RowFixed>
</RowBetween> </RowBetween>
<Break /> <Break />
<RowBetween> <RowBetween>
<ThemedText.Label> <ThemedText.DeprecatedLabel>
<Trans>Fee Tier</Trans> <Trans>Fee Tier</Trans>
</ThemedText.Label> </ThemedText.DeprecatedLabel>
<ThemedText.Label> <ThemedText.DeprecatedLabel>
<Trans>{position?.pool?.fee / 10000}%</Trans> <Trans>{position?.pool?.fee / 10000}%</Trans>
</ThemedText.Label> </ThemedText.DeprecatedLabel>
</RowBetween> </RowBetween>
</AutoColumn> </AutoColumn>
</LightCard> </LightCard>
<AutoColumn gap="md"> <AutoColumn gap="md">
<RowBetween> <RowBetween>
{title ? <ThemedText.Main>{title}</ThemedText.Main> : <div />} {title ? <ThemedText.DeprecatedMain>{title}</ThemedText.DeprecatedMain> : <div />}
<RateToggle <RateToggle
currencyA={sorted ? currency0 : currency1} currencyA={sorted ? currency0 : currency1}
currencyB={sorted ? currency1 : currency0} currencyB={sorted ? currency1 : currency0}
...@@ -122,57 +122,65 @@ export const PositionPreview = ({ ...@@ -122,57 +122,65 @@ export const PositionPreview = ({
<RowBetween> <RowBetween>
<LightCard width="48%" padding="8px"> <LightCard width="48%" padding="8px">
<AutoColumn gap="4px" justify="center"> <AutoColumn gap="4px" justify="center">
<ThemedText.Main fontSize="12px"> <ThemedText.DeprecatedMain fontSize="12px">
<Trans>Min Price</Trans> <Trans>Min Price</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
<ThemedText.MediumHeader textAlign="center">{`${formatTickPrice( <ThemedText.DeprecatedMediumHeader textAlign="center">{`${formatTickPrice(
priceLower, priceLower,
ticksAtLimit, ticksAtLimit,
Bound.LOWER Bound.LOWER
)}`}</ThemedText.MediumHeader> )}`}</ThemedText.DeprecatedMediumHeader>
<ThemedText.Main textAlign="center" fontSize="12px"> <ThemedText.DeprecatedMain textAlign="center" fontSize="12px">
<Trans> <Trans>
{quoteCurrency.symbol} per {baseCurrency.symbol} {quoteCurrency.symbol} per {baseCurrency.symbol}
</Trans> </Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
<ThemedText.Small textAlign="center" color={theme.deprecated_text3} style={{ marginTop: '4px' }}> <ThemedText.DeprecatedSmall
textAlign="center"
color={theme.deprecated_text3}
style={{ marginTop: '4px' }}
>
<Trans>Your position will be 100% composed of {baseCurrency?.symbol} at this price</Trans> <Trans>Your position will be 100% composed of {baseCurrency?.symbol} at this price</Trans>
</ThemedText.Small> </ThemedText.DeprecatedSmall>
</AutoColumn> </AutoColumn>
</LightCard> </LightCard>
<LightCard width="48%" padding="8px"> <LightCard width="48%" padding="8px">
<AutoColumn gap="4px" justify="center"> <AutoColumn gap="4px" justify="center">
<ThemedText.Main fontSize="12px"> <ThemedText.DeprecatedMain fontSize="12px">
<Trans>Max Price</Trans> <Trans>Max Price</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
<ThemedText.MediumHeader textAlign="center">{`${formatTickPrice( <ThemedText.DeprecatedMediumHeader textAlign="center">{`${formatTickPrice(
priceUpper, priceUpper,
ticksAtLimit, ticksAtLimit,
Bound.UPPER Bound.UPPER
)}`}</ThemedText.MediumHeader> )}`}</ThemedText.DeprecatedMediumHeader>
<ThemedText.Main textAlign="center" fontSize="12px"> <ThemedText.DeprecatedMain textAlign="center" fontSize="12px">
<Trans> <Trans>
{quoteCurrency.symbol} per {baseCurrency.symbol} {quoteCurrency.symbol} per {baseCurrency.symbol}
</Trans> </Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
<ThemedText.Small textAlign="center" color={theme.deprecated_text3} style={{ marginTop: '4px' }}> <ThemedText.DeprecatedSmall
textAlign="center"
color={theme.deprecated_text3}
style={{ marginTop: '4px' }}
>
<Trans>Your position will be 100% composed of {quoteCurrency?.symbol} at this price</Trans> <Trans>Your position will be 100% composed of {quoteCurrency?.symbol} at this price</Trans>
</ThemedText.Small> </ThemedText.DeprecatedSmall>
</AutoColumn> </AutoColumn>
</LightCard> </LightCard>
</RowBetween> </RowBetween>
<LightCard padding="12px "> <LightCard padding="12px ">
<AutoColumn gap="4px" justify="center"> <AutoColumn gap="4px" justify="center">
<ThemedText.Main fontSize="12px"> <ThemedText.DeprecatedMain fontSize="12px">
<Trans>Current price</Trans> <Trans>Current price</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
<ThemedText.MediumHeader>{`${price.toSignificant(5)} `}</ThemedText.MediumHeader> <ThemedText.DeprecatedMediumHeader>{`${price.toSignificant(5)} `}</ThemedText.DeprecatedMediumHeader>
<ThemedText.Main textAlign="center" fontSize="12px"> <ThemedText.DeprecatedMain textAlign="center" fontSize="12px">
<Trans> <Trans>
{quoteCurrency.symbol} per {baseCurrency.symbol} {quoteCurrency.symbol} per {baseCurrency.symbol}
</Trans> </Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</AutoColumn> </AutoColumn>
</LightCard> </LightCard>
</AutoColumn> </AutoColumn>
......
...@@ -97,9 +97,9 @@ export function PrivacyPolicyModal() { ...@@ -97,9 +97,9 @@ export function PrivacyPolicyModal() {
<Modal isOpen={open} onDismiss={() => toggle()}> <Modal isOpen={open} onDismiss={() => toggle()}>
<AutoColumn gap="12px" ref={node as any}> <AutoColumn gap="12px" ref={node as any}>
<RowBetween padding="1rem 1rem 0.5rem 1rem"> <RowBetween padding="1rem 1rem 0.5rem 1rem">
<ThemedText.MediumHeader> <ThemedText.DeprecatedMediumHeader>
<Trans>Legal & Privacy</Trans> <Trans>Legal & Privacy</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<HoverText onClick={() => toggle()}> <HoverText onClick={() => toggle()}>
<X size={24} /> <X size={24} />
</HoverText> </HoverText>
...@@ -128,9 +128,9 @@ export function PrivacyPolicy() { ...@@ -128,9 +128,9 @@ export function PrivacyPolicy() {
<RowBetween> <RowBetween>
<AutoRow gap="4px"> <AutoRow gap="4px">
<Info size={20} /> <Info size={20} />
<ThemedText.Main fontSize={14} color={'deprecated_primaryText1'}> <ThemedText.DeprecatedMain fontSize={14} color={'deprecated_primaryText1'}>
<Trans>Uniswap Labs&apos; Terms of Service</Trans> <Trans>Uniswap Labs&apos; Terms of Service</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</AutoRow> </AutoRow>
<StyledLinkOut size={20} /> <StyledLinkOut size={20} />
</RowBetween> </RowBetween>
...@@ -141,39 +141,39 @@ export function PrivacyPolicy() { ...@@ -141,39 +141,39 @@ export function PrivacyPolicy() {
<RowBetween> <RowBetween>
<AutoRow gap="4px"> <AutoRow gap="4px">
<Info size={20} /> <Info size={20} />
<ThemedText.Main fontSize={14} color={'deprecated_primaryText1'}> <ThemedText.DeprecatedMain fontSize={14} color={'deprecated_primaryText1'}>
<Trans>Protocol Disclaimer</Trans> <Trans>Protocol Disclaimer</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</AutoRow> </AutoRow>
<StyledLinkOut size={20} /> <StyledLinkOut size={20} />
</RowBetween> </RowBetween>
</ExternalLink> </ExternalLink>
</StyledExternalCard> </StyledExternalCard>
</AutoColumn> </AutoColumn>
<ThemedText.Main fontSize={14}> <ThemedText.DeprecatedMain fontSize={14}>
<Trans>This app uses the following third-party APIs:</Trans> <Trans>This app uses the following third-party APIs:</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
<AutoColumn gap="12px"> <AutoColumn gap="12px">
{EXTERNAL_APIS.map(({ name, description }, i) => ( {EXTERNAL_APIS.map(({ name, description }, i) => (
<DarkGreyCard key={i}> <DarkGreyCard key={i}>
<AutoColumn gap="8px"> <AutoColumn gap="8px">
<AutoRow gap="4px"> <AutoRow gap="4px">
<Info size={18} /> <Info size={18} />
<ThemedText.Main fontSize={14} color={'deprecated_text1'}> <ThemedText.DeprecatedMain fontSize={14} color={'deprecated_text1'}>
{name} {name}
</ThemedText.Main> </ThemedText.DeprecatedMain>
</AutoRow> </AutoRow>
<ThemedText.Main fontSize={14}>{description}</ThemedText.Main> <ThemedText.DeprecatedMain fontSize={14}>{description}</ThemedText.DeprecatedMain>
</AutoColumn> </AutoColumn>
</DarkGreyCard> </DarkGreyCard>
))} ))}
<ThemedText.Body fontSize={12}> <ThemedText.DeprecatedBody fontSize={12}>
<Row justify="center" marginBottom="1rem"> <Row justify="center" marginBottom="1rem">
<ExternalLink href="https://help.uniswap.org/en/articles/5675203-terms-of-service-faq"> <ExternalLink href="https://help.uniswap.org/en/articles/5675203-terms-of-service-faq">
<Trans>Learn more</Trans> <Trans>Learn more</Trans>
</ExternalLink> </ExternalLink>
</Row> </Row>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
</AutoColumn> </AutoColumn>
</Wrapper> </Wrapper>
......
...@@ -65,7 +65,7 @@ export default function ProgressCircles({ steps, disabled = false, ...rest }: Pr ...@@ -65,7 +65,7 @@ export default function ProgressCircles({ steps, disabled = false, ...rest }: Pr
<Circle confirmed={step} disabled={disabled || (!steps[i - 1] && i !== 0)}> <Circle confirmed={step} disabled={disabled || (!steps[i - 1] && i !== 0)}>
{step ? '' : i + 1 + '.'} {step ? '' : i + 1 + '.'}
</Circle> </Circle>
<ThemedText.Main color={theme.deprecated_text4}>|</ThemedText.Main> <ThemedText.DeprecatedMain color={theme.deprecated_text4}>|</ThemedText.DeprecatedMain>
</CircleRow> </CircleRow>
) )
})} })}
......
...@@ -26,9 +26,9 @@ export default function PresetsButtons({ setFullRange }: { setFullRange: () => v ...@@ -26,9 +26,9 @@ export default function PresetsButtons({ setFullRange }: { setFullRange: () => v
}) })
}} }}
> >
<ThemedText.Body fontSize={12}> <ThemedText.DeprecatedBody fontSize={12}>
<Trans>Full Range</Trans> <Trans>Full Range</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</Button> </Button>
</AutoRow> </AutoRow>
) )
......
...@@ -73,7 +73,7 @@ const ProtocolBadge = styled(Badge)` ...@@ -73,7 +73,7 @@ const ProtocolBadge = styled(Badge)`
z-index: ${Z_INDEX.sticky + 1}; z-index: ${Z_INDEX.sticky + 1};
` `
const BadgeText = styled(ThemedText.Small)` const BadgeText = styled(ThemedText.DeprecatedSmall)`
word-break: normal; word-break: normal;
` `
...@@ -138,7 +138,7 @@ function Pool({ currency0, currency1, feeAmount }: { currency0: Currency; curren ...@@ -138,7 +138,7 @@ function Pool({ currency0, currency1, feeAmount }: { currency0: Currency; curren
<Box margin="0 4px 0 12px"> <Box margin="0 4px 0 12px">
<DoubleCurrencyLogo currency0={tokenInfo1} currency1={tokenInfo0} size={20} /> <DoubleCurrencyLogo currency0={tokenInfo1} currency1={tokenInfo0} size={20} />
</Box> </Box>
<ThemedText.Small fontSize={14}>{feeAmount / 10000}%</ThemedText.Small> <ThemedText.DeprecatedSmall fontSize={14}>{feeAmount / 10000}%</ThemedText.DeprecatedSmall>
</PoolBadge> </PoolBadge>
</MouseoverTooltip> </MouseoverTooltip>
) )
......
...@@ -22,7 +22,7 @@ const Button = styled(ButtonPrimary)` ...@@ -22,7 +22,7 @@ const Button = styled(ButtonPrimary)`
const Content = styled.div` const Content = styled.div`
padding: 1em; padding: 1em;
` `
const Copy = styled(ThemedText.Body)` const Copy = styled(ThemedText.DeprecatedBody)`
text-align: center; text-align: center;
margin: 0 2em 1em !important; margin: 0 2em 1em !important;
font-weight: 400; font-weight: 400;
...@@ -51,9 +51,9 @@ const BlockedToken = ({ onBack, onDismiss, blockedTokens }: BlockedTokenProps) = ...@@ -51,9 +51,9 @@ const BlockedToken = ({ onBack, onDismiss, blockedTokens }: BlockedTokenProps) =
<Wrapper> <Wrapper>
<Header> <Header>
{onBack ? <ArrowLeft style={{ cursor: 'pointer' }} onClick={onBack} /> : <div />} {onBack ? <ArrowLeft style={{ cursor: 'pointer' }} onClick={onBack} /> : <div />}
<ThemedText.MediumHeader> <ThemedText.DeprecatedMediumHeader>
<Trans>Token not supported</Trans> <Trans>Token not supported</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
{onDismiss ? <CloseIcon onClick={onDismiss} /> : <div />} {onDismiss ? <CloseIcon onClick={onDismiss} /> : <div />}
</Header> </Header>
<Icon /> <Icon />
......
...@@ -147,13 +147,13 @@ function CurrencyRow({ ...@@ -147,13 +147,13 @@ function CurrencyRow({
<Text title={currency.name} fontWeight={500}> <Text title={currency.name} fontWeight={500}>
{currency.symbol} {currency.symbol}
</Text> </Text>
<ThemedText.DarkGray ml="0px" fontSize={'12px'} fontWeight={300}> <ThemedText.DeprecatedDarkGray ml="0px" fontSize={'12px'} fontWeight={300}>
{!currency.isNative && !isOnSelectedList && customAdded ? ( {!currency.isNative && !isOnSelectedList && customAdded ? (
<Trans>{currency.name} • Added by user</Trans> <Trans>{currency.name} • Added by user</Trans>
) : ( ) : (
currency.name currency.name
)} )}
</ThemedText.DarkGray> </ThemedText.DeprecatedDarkGray>
</Column> </Column>
<TokenTags currency={currency} /> <TokenTags currency={currency} />
{showCurrencyAmount && ( {showCurrencyAmount && (
...@@ -180,9 +180,9 @@ function BreakLineComponent({ style }: { style: CSSProperties }) { ...@@ -180,9 +180,9 @@ function BreakLineComponent({ style }: { style: CSSProperties }) {
<RowBetween> <RowBetween>
<RowFixed> <RowFixed>
<TokenListLogoWrapper src={TokenListLogo} /> <TokenListLogoWrapper src={TokenListLogo} />
<ThemedText.Main ml="6px" fontSize="12px" color={theme.deprecated_text1}> <ThemedText.DeprecatedMain ml="6px" fontSize="12px" color={theme.deprecated_text1}>
<Trans>Expanded results from inactive Token Lists</Trans> <Trans>Expanded results from inactive Token Lists</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</RowFixed> </RowFixed>
<QuestionHelper <QuestionHelper
text={ text={
......
...@@ -251,9 +251,9 @@ export function CurrencySearch({ ...@@ -251,9 +251,9 @@ export function CurrencySearch({
</div> </div>
) : ( ) : (
<Column style={{ padding: '20px', height: '100%' }}> <Column style={{ padding: '20px', height: '100%' }}>
<ThemedText.Main color={theme.deprecated_text3} textAlign="center" mb="20px"> <ThemedText.DeprecatedMain color={theme.deprecated_text3} textAlign="center" mb="20px">
<Trans>No results found.</Trans> <Trans>No results found.</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</Column> </Column>
)} )}
<Footer> <Footer>
...@@ -263,9 +263,9 @@ export function CurrencySearch({ ...@@ -263,9 +263,9 @@ export function CurrencySearch({
<IconWrapper size="16px" marginRight="6px" stroke={theme.deprecated_primaryText1}> <IconWrapper size="16px" marginRight="6px" stroke={theme.deprecated_primaryText1}>
<Edit /> <Edit />
</IconWrapper> </IconWrapper>
<ThemedText.Main color={theme.deprecated_primaryText1}> <ThemedText.DeprecatedMain color={theme.deprecated_primaryText1}>
<Trans>Manage Token Lists</Trans> <Trans>Manage Token Lists</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</RowFixed> </RowFixed>
</ButtonText> </ButtonText>
</Row> </Row>
......
...@@ -81,9 +81,9 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro ...@@ -81,9 +81,9 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro
<PaddedColumn gap="14px" style={{ width: '100%', flex: '1 1' }}> <PaddedColumn gap="14px" style={{ width: '100%', flex: '1 1' }}>
<RowBetween> <RowBetween>
<ArrowLeft style={{ cursor: 'pointer' }} onClick={() => setModalView(CurrencyModalView.manage)} /> <ArrowLeft style={{ cursor: 'pointer' }} onClick={() => setModalView(CurrencyModalView.manage)} />
<ThemedText.MediumHeader> <ThemedText.DeprecatedMediumHeader>
<Trans>Import List</Trans> <Trans>Import List</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<CloseIcon onClick={onDismiss} /> <CloseIcon onClick={onDismiss} />
</RowBetween> </RowBetween>
</PaddedColumn> </PaddedColumn>
...@@ -96,18 +96,18 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro ...@@ -96,18 +96,18 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro
{list.logoURI && <ListLogo logoURI={list.logoURI} size="40px" />} {list.logoURI && <ListLogo logoURI={list.logoURI} size="40px" />}
<AutoColumn gap="sm" style={{ marginLeft: '20px' }}> <AutoColumn gap="sm" style={{ marginLeft: '20px' }}>
<RowFixed> <RowFixed>
<ThemedText.Body fontWeight={600} mr="6px"> <ThemedText.DeprecatedBody fontWeight={600} mr="6px">
{list.name} {list.name}
</ThemedText.Body> </ThemedText.DeprecatedBody>
<TextDot /> <TextDot />
<ThemedText.Main fontSize={'16px'} ml="6px"> <ThemedText.DeprecatedMain fontSize={'16px'} ml="6px">
<Trans>{list.tokens.length} tokens</Trans> <Trans>{list.tokens.length} tokens</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</RowFixed> </RowFixed>
<ExternalLink href={`https://tokenlists.org/token-list?url=${listURL}`}> <ExternalLink href={`https://tokenlists.org/token-list?url=${listURL}`}>
<ThemedText.Main fontSize={'12px'} color={theme.deprecated_blue1}> <ThemedText.DeprecatedMain fontSize={'12px'} color={theme.deprecated_blue1}>
{listURL} {listURL}
</ThemedText.Main> </ThemedText.DeprecatedMain>
</ExternalLink> </ExternalLink>
</AutoColumn> </AutoColumn>
</RowFixed> </RowFixed>
...@@ -116,22 +116,22 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro ...@@ -116,22 +116,22 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro
<Card style={{ backgroundColor: transparentize(0.8, theme.deprecated_red1) }}> <Card style={{ backgroundColor: transparentize(0.8, theme.deprecated_red1) }}>
<AutoColumn justify="center" style={{ textAlign: 'center', gap: '16px', marginBottom: '12px' }}> <AutoColumn justify="center" style={{ textAlign: 'center', gap: '16px', marginBottom: '12px' }}>
<AlertTriangle stroke={theme.deprecated_red1} size={32} /> <AlertTriangle stroke={theme.deprecated_red1} size={32} />
<ThemedText.Body fontWeight={500} fontSize={20} color={theme.deprecated_red1}> <ThemedText.DeprecatedBody fontWeight={500} fontSize={20} color={theme.deprecated_red1}>
<Trans>Import at your own risk</Trans> <Trans>Import at your own risk</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
<AutoColumn style={{ textAlign: 'center', gap: '16px', marginBottom: '12px' }}> <AutoColumn style={{ textAlign: 'center', gap: '16px', marginBottom: '12px' }}>
<ThemedText.Body fontWeight={500} color={theme.deprecated_red1}> <ThemedText.DeprecatedBody fontWeight={500} color={theme.deprecated_red1}>
<Trans> <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>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.Body fontWeight={600} color={theme.deprecated_red1}> <ThemedText.DeprecatedBody fontWeight={600} color={theme.deprecated_red1}>
<Trans>If you purchase a token from this list, you may not be able to sell it back.</Trans> <Trans>If you purchase a token from this list, you may not be able to sell it back.</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
<AutoRow justify="center" style={{ cursor: 'pointer' }} onClick={() => setConfirmed(!confirmed)}> <AutoRow justify="center" style={{ cursor: 'pointer' }} onClick={() => setConfirmed(!confirmed)}>
<Checkbox <Checkbox
...@@ -140,9 +140,9 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro ...@@ -140,9 +140,9 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro
checked={confirmed} checked={confirmed}
onChange={() => setConfirmed(!confirmed)} onChange={() => setConfirmed(!confirmed)}
/> />
<ThemedText.Body ml="10px" fontSize="16px" color={theme.deprecated_red1} fontWeight={500}> <ThemedText.DeprecatedBody ml="10px" fontSize="16px" color={theme.deprecated_red1} fontWeight={500}>
<Trans>I understand</Trans> <Trans>I understand</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoRow> </AutoRow>
</Card> </Card>
...@@ -156,9 +156,9 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro ...@@ -156,9 +156,9 @@ export function ImportList({ listURL, list, setModalView, onDismiss }: ImportPro
<Trans>Import</Trans> <Trans>Import</Trans>
</ButtonPrimary> </ButtonPrimary>
{addError ? ( {addError ? (
<ThemedText.Error title={addError} style={{ textOverflow: 'ellipsis', overflow: 'hidden' }} error> <ThemedText.DeprecatedError title={addError} style={{ textOverflow: 'ellipsis', overflow: 'hidden' }} error>
{addError} {addError}
</ThemedText.Error> </ThemedText.DeprecatedError>
) : null} ) : null}
</AutoColumn> </AutoColumn>
{/* </Card> */} {/* </Card> */}
......
...@@ -67,16 +67,16 @@ export default function ImportRow({ ...@@ -67,16 +67,16 @@ export default function ImportRow({
<CurrencyLogo currency={token} size={'24px'} style={{ opacity: dim ? '0.6' : '1' }} /> <CurrencyLogo currency={token} size={'24px'} style={{ opacity: dim ? '0.6' : '1' }} />
<AutoColumn gap="4px" style={{ opacity: dim ? '0.6' : '1' }}> <AutoColumn gap="4px" style={{ opacity: dim ? '0.6' : '1' }}>
<AutoRow> <AutoRow>
<ThemedText.Body fontWeight={500}>{token.symbol}</ThemedText.Body> <ThemedText.DeprecatedBody fontWeight={500}>{token.symbol}</ThemedText.DeprecatedBody>
<ThemedText.DarkGray ml="8px" fontWeight={300}> <ThemedText.DeprecatedDarkGray ml="8px" fontWeight={300}>
<NameOverflow title={token.name}>{token.name}</NameOverflow> <NameOverflow title={token.name}>{token.name}</NameOverflow>
</ThemedText.DarkGray> </ThemedText.DeprecatedDarkGray>
</AutoRow> </AutoRow>
{list && list.logoURI && ( {list && list.logoURI && (
<RowFixed> <RowFixed>
<ThemedText.Small mr="4px" color={theme.deprecated_text3}> <ThemedText.DeprecatedSmall mr="4px" color={theme.deprecated_text3}>
<Trans>via {list.name} </Trans> <Trans>via {list.name} </Trans>
</ThemedText.Small> </ThemedText.DeprecatedSmall>
<ListLogo logoURI={list.logoURI} size="12px" /> <ListLogo logoURI={list.logoURI} size="12px" />
</RowFixed> </RowFixed>
)} )}
...@@ -97,9 +97,9 @@ export default function ImportRow({ ...@@ -97,9 +97,9 @@ export default function ImportRow({
) : ( ) : (
<RowFixed style={{ minWidth: 'fit-content' }}> <RowFixed style={{ minWidth: 'fit-content' }}>
<CheckIcon /> <CheckIcon />
<ThemedText.Main color={theme.deprecated_green1}> <ThemedText.DeprecatedMain color={theme.deprecated_green1}>
<Trans>Active</Trans> <Trans>Active</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</RowFixed> </RowFixed>
)} )}
</TokenSection> </TokenSection>
......
...@@ -56,9 +56,9 @@ export function ImportToken(props: ImportProps) { ...@@ -56,9 +56,9 @@ export function ImportToken(props: ImportProps) {
<PaddedColumn gap="14px" style={{ width: '100%', flex: '1 1' }}> <PaddedColumn gap="14px" style={{ width: '100%', flex: '1 1' }}>
<RowBetween> <RowBetween>
{onBack ? <ArrowLeft style={{ cursor: 'pointer' }} onClick={onBack} /> : <div />} {onBack ? <ArrowLeft style={{ cursor: 'pointer' }} onClick={onBack} /> : <div />}
<ThemedText.MediumHeader> <ThemedText.DeprecatedMediumHeader>
<Plural value={tokens.length} _1="Import token" other="Import tokens" /> <Plural value={tokens.length} _1="Import token" other="Import tokens" />
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
{onDismiss ? <CloseIcon onClick={onDismiss} /> : <div />} {onDismiss ? <CloseIcon onClick={onDismiss} /> : <div />}
</RowBetween> </RowBetween>
</PaddedColumn> </PaddedColumn>
...@@ -66,12 +66,12 @@ export function ImportToken(props: ImportProps) { ...@@ -66,12 +66,12 @@ export function ImportToken(props: ImportProps) {
<AutoColumn gap="md" style={{ marginBottom: '32px', padding: '1rem' }}> <AutoColumn gap="md" style={{ marginBottom: '32px', padding: '1rem' }}>
<AutoColumn justify="center" style={{ textAlign: 'center', gap: '16px', padding: '1rem' }}> <AutoColumn justify="center" style={{ textAlign: 'center', gap: '16px', padding: '1rem' }}>
<AlertCircle size={48} stroke={theme.deprecated_text2} strokeWidth={1} /> <AlertCircle size={48} stroke={theme.deprecated_text2} strokeWidth={1} />
<ThemedText.Body fontWeight={400} fontSize={16}> <ThemedText.DeprecatedBody fontWeight={400} fontSize={16}>
<Trans> <Trans>
This token doesn&apos;t appear on the active token list(s). Make sure this is the token that you want to This token doesn&apos;t appear on the active token list(s). Make sure this is the token that you want to
trade. trade.
</Trans> </Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
{tokens.map((token) => ( {tokens.map((token) => (
<TokenImportCard token={token} list={list} key={'import' + token.address} /> <TokenImportCard token={token} list={list} key={'import' + token.address} />
......
...@@ -76,7 +76,7 @@ const StyledTitleText = styled.div<{ active: boolean }>` ...@@ -76,7 +76,7 @@ const StyledTitleText = styled.div<{ active: boolean }>`
color: ${({ theme, active }) => (active ? theme.deprecated_white : theme.deprecated_text2)}; color: ${({ theme, active }) => (active ? theme.deprecated_white : theme.deprecated_text2)};
` `
const StyledListUrlText = styled(ThemedText.Main)<{ active: boolean }>` const StyledListUrlText = styled(ThemedText.DeprecatedMain)<{ active: boolean }>`
font-size: 12px; font-size: 12px;
color: ${({ theme, active }) => (active ? theme.deprecated_white : theme.deprecated_text2)}; color: ${({ theme, active }) => (active ? theme.deprecated_white : theme.deprecated_text2)};
` `
...@@ -362,9 +362,9 @@ export function ManageLists({ ...@@ -362,9 +362,9 @@ export function ManageLists({
/> />
</Row> </Row>
{addError ? ( {addError ? (
<ThemedText.Error title={addError} style={{ textOverflow: 'ellipsis', overflow: 'hidden' }} error> <ThemedText.DeprecatedError title={addError} style={{ textOverflow: 'ellipsis', overflow: 'hidden' }} error>
{addError} {addError}
</ThemedText.Error> </ThemedText.DeprecatedError>
) : null} ) : null}
</PaddedColumn> </PaddedColumn>
{tempList && ( {tempList && (
...@@ -374,10 +374,10 @@ export function ManageLists({ ...@@ -374,10 +374,10 @@ export function ManageLists({
<RowFixed> <RowFixed>
{tempList.logoURI && <ListLogo logoURI={tempList.logoURI} size="40px" />} {tempList.logoURI && <ListLogo logoURI={tempList.logoURI} size="40px" />}
<AutoColumn gap="4px" style={{ marginLeft: '20px' }}> <AutoColumn gap="4px" style={{ marginLeft: '20px' }}>
<ThemedText.Body fontWeight={600}>{tempList.name}</ThemedText.Body> <ThemedText.DeprecatedBody fontWeight={600}>{tempList.name}</ThemedText.DeprecatedBody>
<ThemedText.Main fontSize={'12px'}> <ThemedText.DeprecatedMain fontSize={'12px'}>
<Trans>{tempList.tokens.length} tokens</Trans> <Trans>{tempList.tokens.length} tokens</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</AutoColumn> </AutoColumn>
</RowFixed> </RowFixed>
{isImported ? ( {isImported ? (
...@@ -385,9 +385,9 @@ export function ManageLists({ ...@@ -385,9 +385,9 @@ export function ManageLists({
<IconWrapper stroke={theme.deprecated_text2} size="16px" marginRight={'10px'}> <IconWrapper stroke={theme.deprecated_text2} size="16px" marginRight={'10px'}>
<CheckCircle /> <CheckCircle />
</IconWrapper> </IconWrapper>
<ThemedText.Body color={theme.deprecated_text2}> <ThemedText.DeprecatedBody color={theme.deprecated_text2}>
<Trans>Loaded</Trans> <Trans>Loaded</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</RowFixed> </RowFixed>
) : ( ) : (
<ButtonPrimary <ButtonPrimary
......
...@@ -81,9 +81,9 @@ export default function ManageTokens({ ...@@ -81,9 +81,9 @@ export default function ManageTokens({
<RowFixed> <RowFixed>
<CurrencyLogo currency={token} size={'20px'} /> <CurrencyLogo currency={token} size={'20px'} />
<ExternalLink href={getExplorerLink(chainId, token.address, ExplorerDataType.ADDRESS)}> <ExternalLink href={getExplorerLink(chainId, token.address, ExplorerDataType.ADDRESS)}>
<ThemedText.Main ml={'10px'} fontWeight={600}> <ThemedText.DeprecatedMain ml={'10px'} fontWeight={600}>
{token.symbol} {token.symbol}
</ThemedText.Main> </ThemedText.DeprecatedMain>
</ExternalLink> </ExternalLink>
</RowFixed> </RowFixed>
<RowFixed> <RowFixed>
...@@ -111,9 +111,9 @@ export default function ManageTokens({ ...@@ -111,9 +111,9 @@ export default function ManageTokens({
/> />
</Row> </Row>
{searchQuery !== '' && !isAddressSearch && ( {searchQuery !== '' && !isAddressSearch && (
<ThemedText.Error error={true}> <ThemedText.DeprecatedError error={true}>
<Trans>Enter valid token address</Trans> <Trans>Enter valid token address</Trans>
</ThemedText.Error> </ThemedText.DeprecatedError>
)} )}
{searchToken && ( {searchToken && (
<Card backgroundColor={theme.deprecated_bg2} padding="10px 0"> <Card backgroundColor={theme.deprecated_bg2} padding="10px 0">
...@@ -129,14 +129,14 @@ export default function ManageTokens({ ...@@ -129,14 +129,14 @@ export default function ManageTokens({
<Separator /> <Separator />
<PaddedColumn gap="lg" style={{ overflow: 'auto', marginBottom: '10px' }}> <PaddedColumn gap="lg" style={{ overflow: 'auto', marginBottom: '10px' }}>
<RowBetween> <RowBetween>
<ThemedText.Main fontWeight={600}> <ThemedText.DeprecatedMain fontWeight={600}>
<Trans>{userAddedTokens?.length} Custom Tokens</Trans> <Trans>{userAddedTokens?.length} Custom Tokens</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
{userAddedTokens.length > 0 && ( {userAddedTokens.length > 0 && (
<ButtonText onClick={handleRemoveAll}> <ButtonText onClick={handleRemoveAll}>
<ThemedText.Blue> <ThemedText.DeprecatedBlue>
<Trans>Clear all</Trans> <Trans>Clear all</Trans>
</ThemedText.Blue> </ThemedText.DeprecatedBlue>
</ButtonText> </ButtonText>
)} )}
</RowBetween> </RowBetween>
...@@ -144,9 +144,9 @@ export default function ManageTokens({ ...@@ -144,9 +144,9 @@ export default function ManageTokens({
</PaddedColumn> </PaddedColumn>
</Column> </Column>
<Footer> <Footer>
<ThemedText.DarkGray> <ThemedText.DeprecatedDarkGray>
<Trans>Tip: Custom tokens are stored locally in your browser</Trans> <Trans>Tip: Custom tokens are stored locally in your browser</Trans>
</ThemedText.DarkGray> </ThemedText.DeprecatedDarkGray>
</Footer> </Footer>
</Wrapper> </Wrapper>
) )
......
...@@ -19,7 +19,7 @@ const WarningWrapper = styled(Card)<{ highWarning: boolean }>` ...@@ -19,7 +19,7 @@ const WarningWrapper = styled(Card)<{ highWarning: boolean }>`
width: fit-content; width: fit-content;
` `
const AddressText = styled(ThemedText.Blue)` const AddressText = styled(ThemedText.DeprecatedBlue)`
font-size: 12px; font-size: 12px;
word-break: break-all; word-break: break-all;
...@@ -39,12 +39,12 @@ const TokenImportCard = ({ list, token }: TokenImportCardProps) => { ...@@ -39,12 +39,12 @@ const TokenImportCard = ({ list, token }: TokenImportCardProps) => {
<AutoColumn gap="10px" justify="center"> <AutoColumn gap="10px" justify="center">
<CurrencyLogo currency={token} size={'32px'} /> <CurrencyLogo currency={token} size={'32px'} />
<AutoColumn gap="4px" justify="center"> <AutoColumn gap="4px" justify="center">
<ThemedText.Body ml="8px" mr="8px" fontWeight={500} fontSize={20}> <ThemedText.DeprecatedBody ml="8px" mr="8px" fontWeight={500} fontSize={20}>
{token.symbol} {token.symbol}
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.DarkGray fontWeight={400} fontSize={14}> <ThemedText.DeprecatedDarkGray fontWeight={400} fontSize={14}>
{token.name} {token.name}
</ThemedText.DarkGray> </ThemedText.DeprecatedDarkGray>
</AutoColumn> </AutoColumn>
{chainId && ( {chainId && (
<ExternalLink href={getExplorerLink(chainId, token.address, ExplorerDataType.ADDRESS)}> <ExternalLink href={getExplorerLink(chainId, token.address, ExplorerDataType.ADDRESS)}>
...@@ -54,17 +54,17 @@ const TokenImportCard = ({ list, token }: TokenImportCardProps) => { ...@@ -54,17 +54,17 @@ const TokenImportCard = ({ list, token }: TokenImportCardProps) => {
{list !== undefined ? ( {list !== undefined ? (
<RowFixed> <RowFixed>
{list.logoURI && <ListLogo logoURI={list.logoURI} size="16px" />} {list.logoURI && <ListLogo logoURI={list.logoURI} size="16px" />}
<ThemedText.Small ml="6px" fontSize={14} color={theme.deprecated_text3}> <ThemedText.DeprecatedSmall ml="6px" fontSize={14} color={theme.deprecated_text3}>
<Trans>via {list.name} token list</Trans> <Trans>via {list.name} token list</Trans>
</ThemedText.Small> </ThemedText.DeprecatedSmall>
</RowFixed> </RowFixed>
) : ( ) : (
<WarningWrapper $borderRadius="4px" padding="4px" highWarning={true}> <WarningWrapper $borderRadius="4px" padding="4px" highWarning={true}>
<RowFixed> <RowFixed>
<AlertCircle stroke={theme.deprecated_red1} size="10px" /> <AlertCircle stroke={theme.deprecated_red1} size="10px" />
<ThemedText.Body color={theme.deprecated_red1} ml="4px" fontSize="10px" fontWeight={500}> <ThemedText.DeprecatedBody color={theme.deprecated_red1} ml="4px" fontSize="10px" fontWeight={500}>
<Trans>Unknown Source</Trans> <Trans>Unknown Source</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</RowFixed> </RowFixed>
</WarningWrapper> </WarningWrapper>
)} )}
......
...@@ -208,9 +208,9 @@ export default function SettingsTab({ placeholderSlippage }: { placeholderSlippa ...@@ -208,9 +208,9 @@ export default function SettingsTab({ placeholderSlippage }: { placeholderSlippa
{isSupportedChainId(chainId) && ( {isSupportedChainId(chainId) && (
<RowBetween> <RowBetween>
<RowFixed> <RowFixed>
<ThemedText.Black fontWeight={400} fontSize={14} color={theme.deprecated_text2}> <ThemedText.DeprecatedBlack fontWeight={400} fontSize={14} color={theme.deprecated_text2}>
<Trans>Auto Router API</Trans> <Trans>Auto Router API</Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
<QuestionHelper text={<Trans>Use the Uniswap Labs API to get faster quotes.</Trans>} /> <QuestionHelper text={<Trans>Use the Uniswap Labs API to get faster quotes.</Trans>} />
</RowFixed> </RowFixed>
<Toggle <Toggle
...@@ -228,9 +228,9 @@ export default function SettingsTab({ placeholderSlippage }: { placeholderSlippa ...@@ -228,9 +228,9 @@ export default function SettingsTab({ placeholderSlippage }: { placeholderSlippa
)} )}
<RowBetween> <RowBetween>
<RowFixed> <RowFixed>
<ThemedText.Black fontWeight={400} fontSize={14} color={theme.deprecated_text2}> <ThemedText.DeprecatedBlack fontWeight={400} fontSize={14} color={theme.deprecated_text2}>
<Trans>Expert Mode</Trans> <Trans>Expert Mode</Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
<QuestionHelper <QuestionHelper
text={ text={
<Trans>Allow high price impact trades and skip the confirm screen. Use at your own risk.</Trans> <Trans>Allow high price impact trades and skip the confirm screen. Use at your own risk.</Trans>
......
...@@ -7,7 +7,7 @@ import { DEFAULT_LOCALE, LOCALE_LABEL, SupportedLocale } from '../../constants/l ...@@ -7,7 +7,7 @@ import { DEFAULT_LOCALE, LOCALE_LABEL, SupportedLocale } from '../../constants/l
import { navigatorLocale, useActiveLocale } from '../../hooks/useActiveLocale' import { navigatorLocale, useActiveLocale } from '../../hooks/useActiveLocale'
import { StyledInternalLink, ThemedText } from '../../theme' import { StyledInternalLink, ThemedText } from '../../theme'
const Container = styled(ThemedText.Small)` const Container = styled(ThemedText.DeprecatedSmall)`
opacity: 0.6; opacity: 0.6;
:hover { :hover {
opacity: 1; opacity: 1;
......
...@@ -165,9 +165,9 @@ export default function TransactionSettings({ placeholderSlippage }: Transaction ...@@ -165,9 +165,9 @@ export default function TransactionSettings({ placeholderSlippage }: Transaction
<AutoColumn gap="md"> <AutoColumn gap="md">
<AutoColumn gap="sm"> <AutoColumn gap="sm">
<RowFixed> <RowFixed>
<ThemedText.Black fontWeight={400} fontSize={14} color={theme.deprecated_text2}> <ThemedText.DeprecatedBlack fontWeight={400} fontSize={14} color={theme.deprecated_text2}>
<Trans>Slippage tolerance</Trans> <Trans>Slippage tolerance</Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
<QuestionHelper <QuestionHelper
text={ text={
<Trans>Your transaction will revert if the price changes unfavorably by more than this percentage.</Trans> <Trans>Your transaction will revert if the price changes unfavorably by more than this percentage.</Trans>
...@@ -234,9 +234,9 @@ export default function TransactionSettings({ placeholderSlippage }: Transaction ...@@ -234,9 +234,9 @@ export default function TransactionSettings({ placeholderSlippage }: Transaction
{showCustomDeadlineRow && ( {showCustomDeadlineRow && (
<AutoColumn gap="sm"> <AutoColumn gap="sm">
<RowFixed> <RowFixed>
<ThemedText.Black fontSize={14} fontWeight={400} color={theme.deprecated_text2}> <ThemedText.DeprecatedBlack fontSize={14} fontWeight={400} color={theme.deprecated_text2}>
<Trans>Transaction deadline</Trans> <Trans>Transaction deadline</Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
<QuestionHelper <QuestionHelper
text={<Trans>Your transaction will revert if it is pending for more than this period of time.</Trans>} text={<Trans>Your transaction will revert if it is pending for more than this period of time.</Trans>}
/> />
...@@ -260,9 +260,9 @@ export default function TransactionSettings({ placeholderSlippage }: Transaction ...@@ -260,9 +260,9 @@ export default function TransactionSettings({ placeholderSlippage }: Transaction
color={deadlineError ? 'red' : ''} color={deadlineError ? 'red' : ''}
/> />
</OptionCustom> </OptionCustom>
<ThemedText.Body style={{ paddingLeft: '8px' }} fontSize={14}> <ThemedText.DeprecatedBody style={{ paddingLeft: '8px' }} fontSize={14}>
<Trans>minutes</Trans> <Trans>minutes</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</RowFixed> </RowFixed>
</AutoColumn> </AutoColumn>
)} )}
......
...@@ -63,14 +63,14 @@ export default function PendingView({ ...@@ -63,14 +63,14 @@ export default function PendingView({
<LoadingWrapper> <LoadingWrapper>
{error ? ( {error ? (
<ErrorGroup> <ErrorGroup>
<ThemedText.MediumHeader marginBottom={12}> <ThemedText.DeprecatedMediumHeader marginBottom={12}>
<Trans>Error connecting</Trans> <Trans>Error connecting</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<ThemedText.Body fontSize={14} marginBottom={36} textAlign="center"> <ThemedText.DeprecatedBody fontSize={14} marginBottom={36} textAlign="center">
<Trans> <Trans>
The connection attempt failed. Please click try again and follow the steps to connect in your wallet. The connection attempt failed. Please click try again and follow the steps to connect in your wallet.
</Trans> </Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ButtonPrimary <ButtonPrimary
$borderRadius="12px" $borderRadius="12px"
padding="12px" padding="12px"
...@@ -81,19 +81,19 @@ export default function PendingView({ ...@@ -81,19 +81,19 @@ export default function PendingView({
<Trans>Try Again</Trans> <Trans>Try Again</Trans>
</ButtonPrimary> </ButtonPrimary>
<ButtonEmpty width="fit-content" padding="0" marginTop={20}> <ButtonEmpty width="fit-content" padding="0" marginTop={20}>
<ThemedText.Link fontSize={12} onClick={openOptions}> <ThemedText.DeprecatedLink fontSize={12} onClick={openOptions}>
<Trans>Back to wallet selection</Trans> <Trans>Back to wallet selection</Trans>
</ThemedText.Link> </ThemedText.DeprecatedLink>
</ButtonEmpty> </ButtonEmpty>
</ErrorGroup> </ErrorGroup>
) : ( ) : (
<> <>
<ThemedText.Black fontSize={20} marginY={16}> <ThemedText.DeprecatedBlack fontSize={20} marginY={16}>
<LoaderContainer> <LoaderContainer>
<Loader stroke="currentColor" size="32px" /> <Loader stroke="currentColor" size="32px" />
</LoaderContainer> </LoaderContainer>
<Trans>Connecting...</Trans> <Trans>Connecting...</Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</> </>
)} )}
</LoadingWrapper> </LoadingWrapper>
......
...@@ -302,7 +302,7 @@ export default function WalletModal({ ...@@ -302,7 +302,7 @@ export default function WalletModal({
{!pendingError && ( {!pendingError && (
<LightCard> <LightCard>
<AutoRow style={{ flexWrap: 'nowrap' }}> <AutoRow style={{ flexWrap: 'nowrap' }}>
<ThemedText.Body fontSize={12}> <ThemedText.DeprecatedBody fontSize={12}>
<Trans> <Trans>
By connecting a wallet, you agree to Uniswap Labs’{' '} By connecting a wallet, you agree to Uniswap Labs’{' '}
<ExternalLink <ExternalLink
...@@ -317,7 +317,7 @@ export default function WalletModal({ ...@@ -317,7 +317,7 @@ export default function WalletModal({
</ExternalLink> </ExternalLink>
. .
</Trans> </Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoRow> </AutoRow>
</LightCard> </LightCard>
)} )}
......
...@@ -105,29 +105,29 @@ export default function AddressClaimModal({ isOpen, onDismiss }: { isOpen: boole ...@@ -105,29 +105,29 @@ export default function AddressClaimModal({ isOpen, onDismiss }: { isOpen: boole
<CardNoise /> <CardNoise />
<CardSection gap="md"> <CardSection gap="md">
<RowBetween> <RowBetween>
<ThemedText.White fontWeight={500}> <ThemedText.DeprecatedWhite fontWeight={500}>
<Trans>Claim UNI Token</Trans> <Trans>Claim UNI Token</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
<CloseIcon onClick={wrappedOnDismiss} style={{ zIndex: 99 }} stroke="white" /> <CloseIcon onClick={wrappedOnDismiss} style={{ zIndex: 99 }} stroke="white" />
</RowBetween> </RowBetween>
<ThemedText.White fontWeight={700} fontSize={36}> <ThemedText.DeprecatedWhite fontWeight={700} fontSize={36}>
<Trans>{unclaimedAmount?.toFixed(0, { groupSeparator: ',' } ?? '-')} UNI</Trans> <Trans>{unclaimedAmount?.toFixed(0, { groupSeparator: ',' } ?? '-')} UNI</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</CardSection> </CardSection>
<Break /> <Break />
</ModalUpper> </ModalUpper>
<AutoColumn gap="md" style={{ padding: '1rem', paddingTop: '0' }} justify="center"> <AutoColumn gap="md" style={{ padding: '1rem', paddingTop: '0' }} justify="center">
<ThemedText.SubHeader fontWeight={500}> <ThemedText.DeprecatedSubHeader fontWeight={500}>
<Trans> <Trans>
Enter an address to trigger a UNI claim. If the address has any claimable UNI it will be sent to them on Enter an address to trigger a UNI claim. If the address has any claimable UNI it will be sent to them on
submission. submission.
</Trans> </Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
<AddressInputPanel value={typed} onChange={handleRecipientType} /> <AddressInputPanel value={typed} onChange={handleRecipientType} />
{parsedAddress && !hasAvailableClaim && ( {parsedAddress && !hasAvailableClaim && (
<ThemedText.Error error={true}> <ThemedText.DeprecatedError error={true}>
<Trans>Address has no available claim</Trans> <Trans>Address has no available claim</Trans>
</ThemedText.Error> </ThemedText.DeprecatedError>
)} )}
<ButtonPrimary <ButtonPrimary
disabled={!isAddress(parsedAddress ?? '') || !hasAvailableClaim} disabled={!isAddress(parsedAddress ?? '') || !hasAvailableClaim}
...@@ -159,23 +159,23 @@ export default function AddressClaimModal({ isOpen, onDismiss }: { isOpen: boole ...@@ -159,23 +159,23 @@ export default function AddressClaimModal({ isOpen, onDismiss }: { isOpen: boole
</ConfirmedIcon> </ConfirmedIcon>
<AutoColumn gap="100px" justify={'center'}> <AutoColumn gap="100px" justify={'center'}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader fontWeight={600} color="black"> <ThemedText.DeprecatedLargeHeader fontWeight={600} color="black">
{claimConfirmed ? <Trans>Claimed</Trans> : <Trans>Claiming</Trans>} {claimConfirmed ? <Trans>Claimed</Trans> : <Trans>Claiming</Trans>}
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
{!claimConfirmed && ( {!claimConfirmed && (
<Text fontSize={36} color={'#ff007a'} fontWeight={800}> <Text fontSize={36} color={'#ff007a'} fontWeight={800}>
<Trans>{unclaimedAmount?.toFixed(0, { groupSeparator: ',' } ?? '-')} UNI</Trans> <Trans>{unclaimedAmount?.toFixed(0, { groupSeparator: ',' } ?? '-')} UNI</Trans>
</Text> </Text>
)} )}
{parsedAddress && ( {parsedAddress && (
<ThemedText.LargeHeader fontWeight={600} color="black"> <ThemedText.DeprecatedLargeHeader fontWeight={600} color="black">
<Trans>for {shortenAddress(parsedAddress)}</Trans> <Trans>for {shortenAddress(parsedAddress)}</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
)} )}
</AutoColumn> </AutoColumn>
{claimConfirmed && ( {claimConfirmed && (
<> <>
<ThemedText.SubHeader fontWeight={500} color="black"> <ThemedText.DeprecatedSubHeader fontWeight={500} color="black">
<span role="img" aria-label="party-hat"> <span role="img" aria-label="party-hat">
🎉{' '} 🎉{' '}
</span> </span>
...@@ -183,13 +183,13 @@ export default function AddressClaimModal({ isOpen, onDismiss }: { isOpen: boole ...@@ -183,13 +183,13 @@ export default function AddressClaimModal({ isOpen, onDismiss }: { isOpen: boole
<span role="img" aria-label="party-hat"> <span role="img" aria-label="party-hat">
🎉 🎉
</span> </span>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</> </>
)} )}
{attempting && !hash && ( {attempting && !hash && (
<ThemedText.SubHeader color="black"> <ThemedText.DeprecatedSubHeader color="black">
<Trans>Confirm this transaction in your wallet</Trans> <Trans>Confirm this transaction in your wallet</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
)} )}
{attempting && hash && !claimConfirmed && chainId && hash && ( {attempting && hash && !claimConfirmed && chainId && hash && (
<ExternalLink href={getExplorerLink(chainId, hash, ExplorerDataType.TRANSACTION)} style={{ zIndex: 99 }}> <ExternalLink href={getExplorerLink(chainId, hash, ExplorerDataType.TRANSACTION)} style={{ zIndex: 99 }}>
......
...@@ -100,63 +100,63 @@ export default function ClaimModal() { ...@@ -100,63 +100,63 @@ export default function ClaimModal() {
<CardNoise /> <CardNoise />
<CardSection gap="md"> <CardSection gap="md">
<RowBetween> <RowBetween>
<ThemedText.White fontWeight={500}> <ThemedText.DeprecatedWhite fontWeight={500}>
<Trans>Claim UNI</Trans> <Trans>Claim UNI</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
<CloseIcon onClick={toggleClaimModal} style={{ zIndex: 99 }} color="white" /> <CloseIcon onClick={toggleClaimModal} style={{ zIndex: 99 }} color="white" />
</RowBetween> </RowBetween>
<ThemedText.White fontWeight={700} fontSize={36}> <ThemedText.DeprecatedWhite fontWeight={700} fontSize={36}>
<Trans>{unclaimedAmount?.toFixed(0, { groupSeparator: ',' } ?? '-')} UNI</Trans> <Trans>{unclaimedAmount?.toFixed(0, { groupSeparator: ',' } ?? '-')} UNI</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</CardSection> </CardSection>
<Break /> <Break />
<CardSection gap="sm"> <CardSection gap="sm">
{userClaimData?.flags?.isSOCKS && ( {userClaimData?.flags?.isSOCKS && (
<RowBetween> <RowBetween>
<ThemedText.SubHeader color="white">SOCKS</ThemedText.SubHeader> <ThemedText.DeprecatedSubHeader color="white">SOCKS</ThemedText.DeprecatedSubHeader>
<ThemedText.SubHeader color="white"> <ThemedText.DeprecatedSubHeader color="white">
<Trans>{SOCKS_AMOUNT} UNI</Trans> <Trans>{SOCKS_AMOUNT} UNI</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</RowBetween> </RowBetween>
)} )}
{userClaimData?.flags?.isLP && {userClaimData?.flags?.isLP &&
unclaimedAmount && unclaimedAmount &&
JSBI.greaterThanOrEqual(unclaimedAmount.quotient, nonLPAmount) && ( JSBI.greaterThanOrEqual(unclaimedAmount.quotient, nonLPAmount) && (
<RowBetween> <RowBetween>
<ThemedText.SubHeader color="white"> <ThemedText.DeprecatedSubHeader color="white">
<Trans>Liquidity</Trans> <Trans>Liquidity</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
<ThemedText.SubHeader color="white"> <ThemedText.DeprecatedSubHeader color="white">
<Trans> <Trans>
{unclaimedAmount {unclaimedAmount
.subtract(CurrencyAmount.fromRawAmount(unclaimedAmount.currency, nonLPAmount)) .subtract(CurrencyAmount.fromRawAmount(unclaimedAmount.currency, nonLPAmount))
.toFixed(0, { groupSeparator: ',' })}{' '} .toFixed(0, { groupSeparator: ',' })}{' '}
UNI UNI
</Trans> </Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</RowBetween> </RowBetween>
)} )}
{userClaimData?.flags?.isUser && ( {userClaimData?.flags?.isUser && (
<RowBetween> <RowBetween>
<ThemedText.SubHeader color="white"> <ThemedText.DeprecatedSubHeader color="white">
<Trans>User</Trans> <Trans>User</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
<ThemedText.SubHeader color="white"> <ThemedText.DeprecatedSubHeader color="white">
<Trans>{USER_AMOUNT} UNI</Trans> <Trans>{USER_AMOUNT} UNI</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</RowBetween> </RowBetween>
)} )}
</CardSection> </CardSection>
</ModalUpper> </ModalUpper>
<AutoColumn gap="md" style={{ padding: '1rem', paddingTop: '0' }} justify="center"> <AutoColumn gap="md" style={{ padding: '1rem', paddingTop: '0' }} justify="center">
<ThemedText.SubHeader fontWeight={500}> <ThemedText.DeprecatedSubHeader fontWeight={500}>
<Trans> <Trans>
As a member of the Uniswap community you may claim UNI to be used for voting and governance. As a member of the Uniswap community you may claim UNI to be used for voting and governance.
<br /> <br />
<br /> <br />
<ExternalLink href="https://uniswap.org/blog/uni">Read more about UNI</ExternalLink> <ExternalLink href="https://uniswap.org/blog/uni">Read more about UNI</ExternalLink>
</Trans> </Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
<ButtonPrimary <ButtonPrimary
disabled={!isAddress(account ?? '')} disabled={!isAddress(account ?? '')}
padding="16px 16px" padding="16px 16px"
...@@ -187,9 +187,9 @@ export default function ClaimModal() { ...@@ -187,9 +187,9 @@ export default function ClaimModal() {
</ConfirmedIcon> </ConfirmedIcon>
<AutoColumn gap="100px" justify={'center'}> <AutoColumn gap="100px" justify={'center'}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader fontWeight={600} color="black"> <ThemedText.DeprecatedLargeHeader fontWeight={600} color="black">
{claimConfirmed ? <Trans>Claimed!</Trans> : <Trans>Claiming</Trans>} {claimConfirmed ? <Trans>Claimed!</Trans> : <Trans>Claiming</Trans>}
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
{!claimConfirmed && ( {!claimConfirmed && (
<Text fontSize={36} color={'#ff007a'} fontWeight={800}> <Text fontSize={36} color={'#ff007a'} fontWeight={800}>
<Trans>{unclaimedAmount?.toFixed(0, { groupSeparator: ',' } ?? '-')} UNI</Trans> <Trans>{unclaimedAmount?.toFixed(0, { groupSeparator: ',' } ?? '-')} UNI</Trans>
...@@ -198,7 +198,7 @@ export default function ClaimModal() { ...@@ -198,7 +198,7 @@ export default function ClaimModal() {
</AutoColumn> </AutoColumn>
{claimConfirmed && ( {claimConfirmed && (
<> <>
<ThemedText.SubHeader fontWeight={500} color="black"> <ThemedText.DeprecatedSubHeader fontWeight={500} color="black">
<Trans> <Trans>
<span role="img" aria-label="party-hat"> <span role="img" aria-label="party-hat">
🎉{' '} 🎉{' '}
...@@ -208,13 +208,13 @@ export default function ClaimModal() { ...@@ -208,13 +208,13 @@ export default function ClaimModal() {
🎉 🎉
</span> </span>
</Trans> </Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</> </>
)} )}
{attempting && !claimSubmitted && ( {attempting && !claimSubmitted && (
<ThemedText.SubHeader color="black"> <ThemedText.DeprecatedSubHeader color="black">
<Trans>Confirm this transaction in your wallet</Trans> <Trans>Confirm this transaction in your wallet</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
)} )}
{attempting && claimSubmitted && !claimConfirmed && chainId && claimTxn?.hash && ( {attempting && claimSubmitted && !claimConfirmed && chainId && claimTxn?.hash && (
<ExternalLink <ExternalLink
......
...@@ -81,24 +81,24 @@ export default function ClaimRewardModal({ isOpen, onDismiss, stakingInfo }: Sta ...@@ -81,24 +81,24 @@ export default function ClaimRewardModal({ isOpen, onDismiss, stakingInfo }: Sta
{!attempting && !hash && ( {!attempting && !hash && (
<ContentWrapper gap="lg"> <ContentWrapper gap="lg">
<RowBetween> <RowBetween>
<ThemedText.MediumHeader> <ThemedText.DeprecatedMediumHeader>
<Trans>Claim</Trans> <Trans>Claim</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<CloseIcon onClick={wrappedOnDismiss} /> <CloseIcon onClick={wrappedOnDismiss} />
</RowBetween> </RowBetween>
{stakingInfo?.earnedAmount && ( {stakingInfo?.earnedAmount && (
<AutoColumn justify="center" gap="md"> <AutoColumn justify="center" gap="md">
<ThemedText.Body fontWeight={600} fontSize={36}> <ThemedText.DeprecatedBody fontWeight={600} fontSize={36}>
{stakingInfo?.earnedAmount?.toSignificant(6)} {stakingInfo?.earnedAmount?.toSignificant(6)}
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.Body> <ThemedText.DeprecatedBody>
<Trans>Unclaimed UNI</Trans> <Trans>Unclaimed UNI</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
)} )}
<ThemedText.SubHeader style={{ textAlign: 'center' }}> <ThemedText.DeprecatedSubHeader style={{ textAlign: 'center' }}>
<Trans>When you claim without withdrawing your liquidity remains in the mining pool.</Trans> <Trans>When you claim without withdrawing your liquidity remains in the mining pool.</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
<ButtonError disabled={!!error} error={!!error && !!stakingInfo?.stakedAmount} onClick={onClaimReward}> <ButtonError disabled={!!error} error={!!error && !!stakingInfo?.stakedAmount} onClick={onClaimReward}>
{error ?? <Trans>Claim</Trans>} {error ?? <Trans>Claim</Trans>}
</ButtonError> </ButtonError>
...@@ -107,21 +107,21 @@ export default function ClaimRewardModal({ isOpen, onDismiss, stakingInfo }: Sta ...@@ -107,21 +107,21 @@ export default function ClaimRewardModal({ isOpen, onDismiss, stakingInfo }: Sta
{attempting && !hash && ( {attempting && !hash && (
<LoadingView onDismiss={wrappedOnDismiss}> <LoadingView onDismiss={wrappedOnDismiss}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.Body fontSize={20}> <ThemedText.DeprecatedBody fontSize={20}>
<Trans>Claiming {stakingInfo?.earnedAmount?.toSignificant(6)} UNI</Trans> <Trans>Claiming {stakingInfo?.earnedAmount?.toSignificant(6)} UNI</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
</LoadingView> </LoadingView>
)} )}
{hash && ( {hash && (
<SubmittedView onDismiss={wrappedOnDismiss} hash={hash}> <SubmittedView onDismiss={wrappedOnDismiss} hash={hash}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
<Trans>Transaction Submitted</Trans> <Trans>Transaction Submitted</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
<ThemedText.Body fontSize={20}> <ThemedText.DeprecatedBody fontSize={20}>
<Trans>Claimed UNI!</Trans> <Trans>Claimed UNI!</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
</SubmittedView> </SubmittedView>
)} )}
......
...@@ -118,9 +118,9 @@ export default function PoolCard({ stakingInfo }: { stakingInfo: StakingInfo }) ...@@ -118,9 +118,9 @@ export default function PoolCard({ stakingInfo }: { stakingInfo: StakingInfo })
<TopSection> <TopSection>
<DoubleCurrencyLogo currency0={currency0} currency1={currency1} size={24} /> <DoubleCurrencyLogo currency0={currency0} currency1={currency1} size={24} />
<ThemedText.White fontWeight={600} fontSize={24} style={{ marginLeft: '8px' }}> <ThemedText.DeprecatedWhite fontWeight={600} fontSize={24} style={{ marginLeft: '8px' }}>
{currency0.symbol}-{currency1.symbol} {currency0.symbol}-{currency1.symbol}
</ThemedText.White> </ThemedText.DeprecatedWhite>
<StyledInternalLink to={`/uni/${currencyId(currency0)}/${currencyId(currency1)}`} style={{ width: '100%' }}> <StyledInternalLink to={`/uni/${currencyId(currency0)}/${currencyId(currency1)}`} style={{ width: '100%' }}>
<ButtonPrimary padding="8px" $borderRadius="8px"> <ButtonPrimary padding="8px" $borderRadius="8px">
...@@ -131,22 +131,22 @@ export default function PoolCard({ stakingInfo }: { stakingInfo: StakingInfo }) ...@@ -131,22 +131,22 @@ export default function PoolCard({ stakingInfo }: { stakingInfo: StakingInfo })
<StatContainer> <StatContainer>
<RowBetween> <RowBetween>
<ThemedText.White> <ThemedText.DeprecatedWhite>
<Trans>Total deposited</Trans> <Trans>Total deposited</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
<ThemedText.White> <ThemedText.DeprecatedWhite>
{valueOfTotalStakedAmountInUSDC ? ( {valueOfTotalStakedAmountInUSDC ? (
<Trans>${valueOfTotalStakedAmountInUSDC.toFixed(0, { groupSeparator: ',' })}</Trans> <Trans>${valueOfTotalStakedAmountInUSDC.toFixed(0, { groupSeparator: ',' })}</Trans>
) : ( ) : (
<Trans>{valueOfTotalStakedAmountInWETH?.toSignificant(4, { groupSeparator: ',' }) ?? '-'} ETH</Trans> <Trans>{valueOfTotalStakedAmountInWETH?.toSignificant(4, { groupSeparator: ',' }) ?? '-'} ETH</Trans>
)} )}
</ThemedText.White> </ThemedText.DeprecatedWhite>
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<ThemedText.White> <ThemedText.DeprecatedWhite>
<Trans>Pool rate</Trans> <Trans>Pool rate</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
<ThemedText.White> <ThemedText.DeprecatedWhite>
{stakingInfo ? ( {stakingInfo ? (
stakingInfo.active ? ( stakingInfo.active ? (
<Trans> <Trans>
...@@ -159,7 +159,7 @@ export default function PoolCard({ stakingInfo }: { stakingInfo: StakingInfo }) ...@@ -159,7 +159,7 @@ export default function PoolCard({ stakingInfo }: { stakingInfo: StakingInfo })
) : ( ) : (
'-' '-'
)} )}
</ThemedText.White> </ThemedText.DeprecatedWhite>
</RowBetween> </RowBetween>
</StatContainer> </StatContainer>
...@@ -167,13 +167,13 @@ export default function PoolCard({ stakingInfo }: { stakingInfo: StakingInfo }) ...@@ -167,13 +167,13 @@ export default function PoolCard({ stakingInfo }: { stakingInfo: StakingInfo })
<> <>
<Break /> <Break />
<BottomSection showBackground={true}> <BottomSection showBackground={true}>
<ThemedText.Black color={'deprecated_white'} fontWeight={500}> <ThemedText.DeprecatedBlack color={'deprecated_white'} fontWeight={500}>
<span> <span>
<Trans>Your rate</Trans> <Trans>Your rate</Trans>
</span> </span>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
<ThemedText.Black style={{ textAlign: 'right' }} color={'deprecated_white'} fontWeight={500}> <ThemedText.DeprecatedBlack style={{ textAlign: 'right' }} color={'deprecated_white'} fontWeight={500}>
<span role="img" aria-label="wizard-icon" style={{ marginRight: '0.5rem' }}> <span role="img" aria-label="wizard-icon" style={{ marginRight: '0.5rem' }}>
</span> </span>
...@@ -191,7 +191,7 @@ export default function PoolCard({ stakingInfo }: { stakingInfo: StakingInfo }) ...@@ -191,7 +191,7 @@ export default function PoolCard({ stakingInfo }: { stakingInfo: StakingInfo })
) : ( ) : (
'-' '-'
)} )}
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</BottomSection> </BottomSection>
</> </>
)} )}
......
...@@ -166,9 +166,9 @@ export default function StakingModal({ isOpen, onDismiss, stakingInfo, userLiqui ...@@ -166,9 +166,9 @@ export default function StakingModal({ isOpen, onDismiss, stakingInfo, userLiqui
{!attempting && !hash && ( {!attempting && !hash && (
<ContentWrapper gap="lg"> <ContentWrapper gap="lg">
<RowBetween> <RowBetween>
<ThemedText.MediumHeader> <ThemedText.DeprecatedMediumHeader>
<Trans>Deposit</Trans> <Trans>Deposit</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<CloseIcon onClick={wrappedOnDismiss} /> <CloseIcon onClick={wrappedOnDismiss} />
</RowBetween> </RowBetween>
<CurrencyInputPanel <CurrencyInputPanel
...@@ -185,19 +185,19 @@ export default function StakingModal({ isOpen, onDismiss, stakingInfo, userLiqui ...@@ -185,19 +185,19 @@ export default function StakingModal({ isOpen, onDismiss, stakingInfo, userLiqui
<HypotheticalRewardRate dim={!hypotheticalRewardRate.greaterThan('0')}> <HypotheticalRewardRate dim={!hypotheticalRewardRate.greaterThan('0')}>
<div> <div>
<ThemedText.Black fontWeight={600}> <ThemedText.DeprecatedBlack fontWeight={600}>
<Trans>Weekly Rewards</Trans> <Trans>Weekly Rewards</Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</div> </div>
<ThemedText.Black> <ThemedText.DeprecatedBlack>
<Trans> <Trans>
{hypotheticalRewardRate {hypotheticalRewardRate
.multiply((60 * 60 * 24 * 7).toString()) .multiply((60 * 60 * 24 * 7).toString())
.toSignificant(4, { groupSeparator: ',' })}{' '} .toSignificant(4, { groupSeparator: ',' })}{' '}
UNI / week UNI / week
</Trans> </Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</HypotheticalRewardRate> </HypotheticalRewardRate>
<RowBetween> <RowBetween>
...@@ -223,24 +223,24 @@ export default function StakingModal({ isOpen, onDismiss, stakingInfo, userLiqui ...@@ -223,24 +223,24 @@ export default function StakingModal({ isOpen, onDismiss, stakingInfo, userLiqui
{attempting && !hash && ( {attempting && !hash && (
<LoadingView onDismiss={wrappedOnDismiss}> <LoadingView onDismiss={wrappedOnDismiss}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
<Trans>Depositing Liquidity</Trans> <Trans>Depositing Liquidity</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
<ThemedText.Body fontSize={20}> <ThemedText.DeprecatedBody fontSize={20}>
<Trans>{parsedAmount?.toSignificant(4)} UNI-V2</Trans> <Trans>{parsedAmount?.toSignificant(4)} UNI-V2</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
</LoadingView> </LoadingView>
)} )}
{attempting && hash && ( {attempting && hash && (
<SubmittedView onDismiss={wrappedOnDismiss} hash={hash}> <SubmittedView onDismiss={wrappedOnDismiss} hash={hash}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
<Trans>Transaction Submitted</Trans> <Trans>Transaction Submitted</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
<ThemedText.Body fontSize={20}> <ThemedText.DeprecatedBody fontSize={20}>
<Trans>Deposited {parsedAmount?.toSignificant(4)} UNI-V2</Trans> <Trans>Deposited {parsedAmount?.toSignificant(4)} UNI-V2</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
</SubmittedView> </SubmittedView>
)} )}
......
...@@ -83,34 +83,34 @@ export default function UnstakingModal({ isOpen, onDismiss, stakingInfo }: Staki ...@@ -83,34 +83,34 @@ export default function UnstakingModal({ isOpen, onDismiss, stakingInfo }: Staki
{!attempting && !hash && ( {!attempting && !hash && (
<ContentWrapper gap="lg"> <ContentWrapper gap="lg">
<RowBetween> <RowBetween>
<ThemedText.MediumHeader> <ThemedText.DeprecatedMediumHeader>
<Trans>Withdraw</Trans> <Trans>Withdraw</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<CloseIcon onClick={wrappedOnDismiss} /> <CloseIcon onClick={wrappedOnDismiss} />
</RowBetween> </RowBetween>
{stakingInfo?.stakedAmount && ( {stakingInfo?.stakedAmount && (
<AutoColumn justify="center" gap="md"> <AutoColumn justify="center" gap="md">
<ThemedText.Body fontWeight={600} fontSize={36}> <ThemedText.DeprecatedBody fontWeight={600} fontSize={36}>
{<FormattedCurrencyAmount currencyAmount={stakingInfo.stakedAmount} />} {<FormattedCurrencyAmount currencyAmount={stakingInfo.stakedAmount} />}
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.Body> <ThemedText.DeprecatedBody>
<Trans>Deposited liquidity:</Trans> <Trans>Deposited liquidity:</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
)} )}
{stakingInfo?.earnedAmount && ( {stakingInfo?.earnedAmount && (
<AutoColumn justify="center" gap="md"> <AutoColumn justify="center" gap="md">
<ThemedText.Body fontWeight={600} fontSize={36}> <ThemedText.DeprecatedBody fontWeight={600} fontSize={36}>
{<FormattedCurrencyAmount currencyAmount={stakingInfo?.earnedAmount} />} {<FormattedCurrencyAmount currencyAmount={stakingInfo?.earnedAmount} />}
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.Body> <ThemedText.DeprecatedBody>
<Trans>Unclaimed UNI</Trans> <Trans>Unclaimed UNI</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
)} )}
<ThemedText.SubHeader style={{ textAlign: 'center' }}> <ThemedText.DeprecatedSubHeader style={{ textAlign: 'center' }}>
<Trans>When you withdraw, your UNI is claimed and your liquidity is removed from the mining pool.</Trans> <Trans>When you withdraw, your UNI is claimed and your liquidity is removed from the mining pool.</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
<ButtonError disabled={!!error} error={!!error && !!stakingInfo?.stakedAmount} onClick={onWithdraw}> <ButtonError disabled={!!error} error={!!error && !!stakingInfo?.stakedAmount} onClick={onWithdraw}>
{error ?? <Trans>Withdraw & Claim</Trans>} {error ?? <Trans>Withdraw & Claim</Trans>}
</ButtonError> </ButtonError>
...@@ -119,27 +119,27 @@ export default function UnstakingModal({ isOpen, onDismiss, stakingInfo }: Staki ...@@ -119,27 +119,27 @@ export default function UnstakingModal({ isOpen, onDismiss, stakingInfo }: Staki
{attempting && !hash && ( {attempting && !hash && (
<LoadingView onDismiss={wrappedOnDismiss}> <LoadingView onDismiss={wrappedOnDismiss}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.Body fontSize={20}> <ThemedText.DeprecatedBody fontSize={20}>
<Trans>Withdrawing {stakingInfo?.stakedAmount?.toSignificant(4)} UNI-V2</Trans> <Trans>Withdrawing {stakingInfo?.stakedAmount?.toSignificant(4)} UNI-V2</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.Body fontSize={20}> <ThemedText.DeprecatedBody fontSize={20}>
<Trans>Claiming {stakingInfo?.earnedAmount?.toSignificant(4)} UNI</Trans> <Trans>Claiming {stakingInfo?.earnedAmount?.toSignificant(4)} UNI</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
</LoadingView> </LoadingView>
)} )}
{hash && ( {hash && (
<SubmittedView onDismiss={wrappedOnDismiss} hash={hash}> <SubmittedView onDismiss={wrappedOnDismiss} hash={hash}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
<Trans>Transaction Submitted</Trans> <Trans>Transaction Submitted</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
<ThemedText.Body fontSize={20}> <ThemedText.DeprecatedBody fontSize={20}>
<Trans>Withdrew UNI-V2!</Trans> <Trans>Withdrew UNI-V2!</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.Body fontSize={20}> <ThemedText.DeprecatedBody fontSize={20}>
<Trans>Claimed UNI!</Trans> <Trans>Claimed UNI!</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
</SubmittedView> </SubmittedView>
)} )}
......
...@@ -84,17 +84,17 @@ export function AdvancedSwapDetails({ ...@@ -84,17 +84,17 @@ export function AdvancedSwapDetails({
} }
disableHover={hideInfoTooltips} disableHover={hideInfoTooltips}
> >
<ThemedText.SubHeader color={theme.deprecated_text1}> <ThemedText.DeprecatedSubHeader color={theme.deprecated_text1}>
<Trans>Expected Output</Trans> <Trans>Expected Output</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</MouseoverTooltip> </MouseoverTooltip>
</RowFixed> </RowFixed>
<TextWithLoadingPlaceholder syncing={syncing} width={65}> <TextWithLoadingPlaceholder syncing={syncing} width={65}>
<ThemedText.Black textAlign="right" fontSize={14}> <ThemedText.DeprecatedBlack textAlign="right" fontSize={14}>
{expectedOutputAmount {expectedOutputAmount
? `${expectedOutputAmount.toSignificant(6)} ${expectedOutputAmount.currency.symbol}` ? `${expectedOutputAmount.toSignificant(6)} ${expectedOutputAmount.currency.symbol}`
: '-'} : '-'}
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</TextWithLoadingPlaceholder> </TextWithLoadingPlaceholder>
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
...@@ -103,15 +103,15 @@ export function AdvancedSwapDetails({ ...@@ -103,15 +103,15 @@ export function AdvancedSwapDetails({
text={<Trans>The impact your trade has on the market price of this pool.</Trans>} text={<Trans>The impact your trade has on the market price of this pool.</Trans>}
disableHover={hideInfoTooltips} disableHover={hideInfoTooltips}
> >
<ThemedText.SubHeader color={theme.deprecated_text1}> <ThemedText.DeprecatedSubHeader color={theme.deprecated_text1}>
<Trans>Price Impact</Trans> <Trans>Price Impact</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</MouseoverTooltip> </MouseoverTooltip>
</RowFixed> </RowFixed>
<TextWithLoadingPlaceholder syncing={syncing} width={50}> <TextWithLoadingPlaceholder syncing={syncing} width={50}>
<ThemedText.Black textAlign="right" fontSize={14}> <ThemedText.DeprecatedBlack textAlign="right" fontSize={14}>
<FormattedPriceImpact priceImpact={priceImpact} /> <FormattedPriceImpact priceImpact={priceImpact} />
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</TextWithLoadingPlaceholder> </TextWithLoadingPlaceholder>
</RowBetween> </RowBetween>
<Separator /> <Separator />
...@@ -126,22 +126,22 @@ export function AdvancedSwapDetails({ ...@@ -126,22 +126,22 @@ export function AdvancedSwapDetails({
} }
disableHover={hideInfoTooltips} disableHover={hideInfoTooltips}
> >
<ThemedText.SubHeader color={theme.deprecated_text3}> <ThemedText.DeprecatedSubHeader color={theme.deprecated_text3}>
{trade.tradeType === TradeType.EXACT_INPUT ? ( {trade.tradeType === TradeType.EXACT_INPUT ? (
<Trans>Minimum received</Trans> <Trans>Minimum received</Trans>
) : ( ) : (
<Trans>Maximum sent</Trans> <Trans>Maximum sent</Trans>
)}{' '} )}{' '}
<Trans>after slippage</Trans> ({allowedSlippage.toFixed(2)}%) <Trans>after slippage</Trans> ({allowedSlippage.toFixed(2)}%)
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</MouseoverTooltip> </MouseoverTooltip>
</RowFixed> </RowFixed>
<TextWithLoadingPlaceholder syncing={syncing} width={70}> <TextWithLoadingPlaceholder syncing={syncing} width={70}>
<ThemedText.Black textAlign="right" fontSize={14} color={theme.deprecated_text3}> <ThemedText.DeprecatedBlack textAlign="right" fontSize={14} color={theme.deprecated_text3}>
{trade.tradeType === TradeType.EXACT_INPUT {trade.tradeType === TradeType.EXACT_INPUT
? `${trade.minimumAmountOut(allowedSlippage).toSignificant(6)} ${trade.outputAmount.currency.symbol}` ? `${trade.minimumAmountOut(allowedSlippage).toSignificant(6)} ${trade.outputAmount.currency.symbol}`
: `${trade.maximumAmountIn(allowedSlippage).toSignificant(6)} ${trade.inputAmount.currency.symbol}`} : `${trade.maximumAmountIn(allowedSlippage).toSignificant(6)} ${trade.inputAmount.currency.symbol}`}
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</TextWithLoadingPlaceholder> </TextWithLoadingPlaceholder>
</RowBetween> </RowBetween>
{!trade?.gasUseEstimateUSD || !chainId || !SUPPORTED_GAS_ESTIMATE_CHAIN_IDS.includes(chainId) ? null : ( {!trade?.gasUseEstimateUSD || !chainId || !SUPPORTED_GAS_ESTIMATE_CHAIN_IDS.includes(chainId) ? null : (
...@@ -154,14 +154,14 @@ export function AdvancedSwapDetails({ ...@@ -154,14 +154,14 @@ export function AdvancedSwapDetails({
} }
disableHover={hideInfoTooltips} disableHover={hideInfoTooltips}
> >
<ThemedText.SubHeader color={theme.deprecated_text3}> <ThemedText.DeprecatedSubHeader color={theme.deprecated_text3}>
<Trans>Network Fee</Trans> <Trans>Network Fee</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</MouseoverTooltip> </MouseoverTooltip>
<TextWithLoadingPlaceholder syncing={syncing} width={50}> <TextWithLoadingPlaceholder syncing={syncing} width={50}>
<ThemedText.Black textAlign="right" fontSize={14} color={theme.deprecated_text3}> <ThemedText.DeprecatedBlack textAlign="right" fontSize={14} color={theme.deprecated_text3}>
~${trade.gasUseEstimateUSD.toFixed(2)} ~${trade.gasUseEstimateUSD.toFixed(2)}
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</TextWithLoadingPlaceholder> </TextWithLoadingPlaceholder>
</RowBetween> </RowBetween>
)} )}
......
...@@ -69,15 +69,15 @@ export default function GasEstimateBadge({ ...@@ -69,15 +69,15 @@ export default function GasEstimateBadge({
) : null ) : null
) : ( ) : (
<AutoColumn gap="4px" justify="center"> <AutoColumn gap="4px" justify="center">
<ThemedText.Main fontSize="12px" textAlign="center"> <ThemedText.DeprecatedMain fontSize="12px" textAlign="center">
<Trans>Estimated network fee</Trans> <Trans>Estimated network fee</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
<ThemedText.Body textAlign="center" fontWeight={500} style={{ userSelect: 'none' }}> <ThemedText.DeprecatedBody textAlign="center" fontWeight={500} style={{ userSelect: 'none' }}>
<Trans>${trade?.gasUseEstimateUSD?.toFixed(2)}</Trans> <Trans>${trade?.gasUseEstimateUSD?.toFixed(2)}</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.Main fontSize="10px" textAlign="center" maxWidth="140px" color="text3"> <ThemedText.DeprecatedMain fontSize="10px" textAlign="center" maxWidth="140px" color="text3">
<Trans>Estimate may differ due to your wallet gas settings</Trans> <Trans>Estimate may differ due to your wallet gas settings</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</AutoColumn> </AutoColumn>
)} )}
</ResponsiveTooltipContainer> </ResponsiveTooltipContainer>
......
...@@ -26,7 +26,7 @@ const StyledStaticRouterIcon = styled(StaticRouterIcon)` ...@@ -26,7 +26,7 @@ const StyledStaticRouterIcon = styled(StaticRouterIcon)`
} }
` `
const StyledAutoRouterLabel = styled(ThemedText.Black)` const StyledAutoRouterLabel = styled(ThemedText.DeprecatedBlack)`
line-height: 1rem; line-height: 1rem;
/* fallback color */ /* fallback color */
...@@ -51,8 +51,8 @@ export function AutoRouterLabel() { ...@@ -51,8 +51,8 @@ export function AutoRouterLabel() {
return autoRouterSupported ? ( return autoRouterSupported ? (
<StyledAutoRouterLabel fontSize={14}>Auto Router</StyledAutoRouterLabel> <StyledAutoRouterLabel fontSize={14}>Auto Router</StyledAutoRouterLabel>
) : ( ) : (
<ThemedText.Black fontSize={14}> <ThemedText.DeprecatedBlack fontSize={14}>
<Trans>Trade Route</Trans> <Trans>Trade Route</Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
) )
} }
...@@ -220,9 +220,9 @@ export default function SwapDetailsDropdown({ ...@@ -220,9 +220,9 @@ export default function SwapDetailsDropdown({
</Trace> </Trace>
</LoadingOpacityContainer> </LoadingOpacityContainer>
) : loading || syncing ? ( ) : loading || syncing ? (
<ThemedText.Main fontSize={14}> <ThemedText.DeprecatedMain fontSize={14}>
<Trans>Fetching best price...</Trans> <Trans>Fetching best price...</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
) : null} ) : null}
</RowFixed> </RowFixed>
<RowFixed> <RowFixed>
......
...@@ -17,9 +17,9 @@ export default function SwapHeader({ allowedSlippage }: { allowedSlippage: Perce ...@@ -17,9 +17,9 @@ export default function SwapHeader({ allowedSlippage }: { allowedSlippage: Perce
<StyledSwapHeader> <StyledSwapHeader>
<RowBetween> <RowBetween>
<RowFixed> <RowFixed>
<ThemedText.Black fontWeight={500} fontSize={16} style={{ marginRight: '8px' }}> <ThemedText.DeprecatedBlack fontWeight={500} fontSize={16} style={{ marginRight: '8px' }}>
<Trans>Swap</Trans> <Trans>Swap</Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</RowFixed> </RowFixed>
<RowFixed> <RowFixed>
<SettingsTab placeholderSlippage={allowedSlippage} /> <SettingsTab placeholderSlippage={allowedSlippage} />
......
...@@ -103,12 +103,12 @@ export default function SwapModalHeader({ ...@@ -103,12 +103,12 @@ export default function SwapModalHeader({
</RowFixed> </RowFixed>
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<ThemedText.Body fontSize={14} color={theme.deprecated_text3}> <ThemedText.DeprecatedBody fontSize={14} color={theme.deprecated_text3}>
<FiatValue <FiatValue
fiatValue={fiatValueOutput} fiatValue={fiatValueOutput}
priceImpact={computeFiatValuePriceImpact(fiatValueInput, fiatValueOutput)} priceImpact={computeFiatValuePriceImpact(fiatValueInput, fiatValueOutput)}
/> />
</ThemedText.Body> </ThemedText.DeprecatedBody>
</RowBetween> </RowBetween>
</AutoColumn> </AutoColumn>
</LightCard> </LightCard>
...@@ -123,9 +123,9 @@ export default function SwapModalHeader({ ...@@ -123,9 +123,9 @@ export default function SwapModalHeader({
<RowBetween> <RowBetween>
<RowFixed> <RowFixed>
<AlertTriangle size={20} style={{ marginRight: '8px', minWidth: 24 }} /> <AlertTriangle size={20} style={{ marginRight: '8px', minWidth: 24 }} />
<ThemedText.Main color={theme.deprecated_primary1}> <ThemedText.DeprecatedMain color={theme.deprecated_primary1}>
<Trans>Price Updated</Trans> <Trans>Price Updated</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</RowFixed> </RowFixed>
<ButtonPrimary <ButtonPrimary
style={{ padding: '.5rem', width: 'fit-content', fontSize: '0.825rem', borderRadius: '12px' }} style={{ padding: '.5rem', width: 'fit-content', fontSize: '0.825rem', borderRadius: '12px' }}
...@@ -139,7 +139,7 @@ export default function SwapModalHeader({ ...@@ -139,7 +139,7 @@ export default function SwapModalHeader({
<AutoColumn justify="flex-start" gap="sm" style={{ padding: '.75rem 1rem' }}> <AutoColumn justify="flex-start" gap="sm" style={{ padding: '.75rem 1rem' }}>
{trade.tradeType === TradeType.EXACT_INPUT ? ( {trade.tradeType === TradeType.EXACT_INPUT ? (
<ThemedText.Italic fontWeight={400} textAlign="left" style={{ width: '100%' }}> <ThemedText.DeprecatedItalic fontWeight={400} textAlign="left" style={{ width: '100%' }}>
<Trans> <Trans>
Output is estimated. You will receive at least{' '} Output is estimated. You will receive at least{' '}
<b> <b>
...@@ -147,9 +147,9 @@ export default function SwapModalHeader({ ...@@ -147,9 +147,9 @@ export default function SwapModalHeader({
</b>{' '} </b>{' '}
or the transaction will revert. or the transaction will revert.
</Trans> </Trans>
</ThemedText.Italic> </ThemedText.DeprecatedItalic>
) : ( ) : (
<ThemedText.Italic fontWeight={400} textAlign="left" style={{ width: '100%' }}> <ThemedText.DeprecatedItalic fontWeight={400} textAlign="left" style={{ width: '100%' }}>
<Trans> <Trans>
Input is estimated. You will sell at most{' '} Input is estimated. You will sell at most{' '}
<b> <b>
...@@ -157,17 +157,17 @@ export default function SwapModalHeader({ ...@@ -157,17 +157,17 @@ export default function SwapModalHeader({
</b>{' '} </b>{' '}
or the transaction will revert. or the transaction will revert.
</Trans> </Trans>
</ThemedText.Italic> </ThemedText.DeprecatedItalic>
)} )}
</AutoColumn> </AutoColumn>
{recipient !== null ? ( {recipient !== null ? (
<AutoColumn justify="flex-start" gap="sm" style={{ padding: '12px 0 0 0px' }}> <AutoColumn justify="flex-start" gap="sm" style={{ padding: '12px 0 0 0px' }}>
<ThemedText.Main> <ThemedText.DeprecatedMain>
<Trans> <Trans>
Output will be sent to{' '} Output will be sent to{' '}
<b title={recipient}>{isAddress(recipient) ? shortenAddress(recipient) : recipient}</b> <b title={recipient}>{isAddress(recipient) ? shortenAddress(recipient) : recipient}</b>
</Trans> </Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</AutoColumn> </AutoColumn>
) : null} ) : null}
</AutoColumn> </AutoColumn>
......
...@@ -100,7 +100,7 @@ export default memo(function SwapRoute({ trade, syncing, fixedOpen = false, ...r ...@@ -100,7 +100,7 @@ export default memo(function SwapRoute({ trade, syncing, fixedOpen = false, ...r
<div style={{ width: '250px', height: '15px' }} /> <div style={{ width: '250px', height: '15px' }} />
</LoadingRows> </LoadingRows>
) : ( ) : (
<ThemedText.Main fontSize={12} width={400} margin={0}> <ThemedText.DeprecatedMain fontSize={12} width={400} margin={0}>
{trade?.gasUseEstimateUSD && chainId && SUPPORTED_GAS_ESTIMATE_CHAIN_IDS.includes(chainId) ? ( {trade?.gasUseEstimateUSD && chainId && SUPPORTED_GAS_ESTIMATE_CHAIN_IDS.includes(chainId) ? (
<Trans>Best price route costs ~{formattedGasPriceString} in gas. </Trans> <Trans>Best price route costs ~{formattedGasPriceString} in gas. </Trans>
) : null}{' '} ) : null}{' '}
...@@ -108,7 +108,7 @@ export default memo(function SwapRoute({ trade, syncing, fixedOpen = false, ...r ...@@ -108,7 +108,7 @@ export default memo(function SwapRoute({ trade, syncing, fixedOpen = false, ...r
This route optimizes your total output by considering split routes, multiple hops, and the gas cost This route optimizes your total output by considering split routes, multiple hops, and the gas cost
of each step. of each step.
</Trans> </Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
)} )}
</> </>
)} )}
......
...@@ -47,21 +47,21 @@ export default function SwapWarningDropdown({ ...@@ -47,21 +47,21 @@ export default function SwapWarningDropdown({
<Wrapper> <Wrapper>
{showNetworkFeeWarning ? ( {showNetworkFeeWarning ? (
<RowBetween> <RowBetween>
<ThemedText.Main fontSize="14px" color="text3"> <ThemedText.DeprecatedMain fontSize="14px" color="text3">
<Trans>Network fees exceed 50% of the swap amount!</Trans> <Trans>Network fees exceed 50% of the swap amount!</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
<MouseoverTooltipContent <MouseoverTooltipContent
wrap={false} wrap={false}
content={ content={
<ResponsiveTooltipContainer origin="top right" style={{ padding: '12px' }}> <ResponsiveTooltipContainer origin="top right" style={{ padding: '12px' }}>
<ThemedText.Main fontSize="12px" color="text3" maxWidth="200px"> <ThemedText.DeprecatedMain fontSize="12px" color="text3" maxWidth="200px">
<Trans> <Trans>
The cost of sending this transaction is more than half of the value of the input amount. The cost of sending this transaction is more than half of the value of the input amount.
</Trans> </Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
<ThemedText.Main fontSize="12px" color="text3" maxWidth="200px" mt="8px"> <ThemedText.DeprecatedMain fontSize="12px" color="text3" maxWidth="200px" mt="8px">
<Trans>You might consider waiting until the network fees go down to complete this transaction.</Trans> <Trans>You might consider waiting until the network fees go down to complete this transaction.</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</ResponsiveTooltipContainer> </ResponsiveTooltipContainer>
} }
placement="bottom" placement="bottom"
......
...@@ -64,9 +64,9 @@ export default function TradePrice({ price, showInverted, setShowInverted }: Tra ...@@ -64,9 +64,9 @@ export default function TradePrice({ price, showInverted, setShowInverted }: Tra
{text} {text}
</Text>{' '} </Text>{' '}
{usdcPrice && ( {usdcPrice && (
<ThemedText.DarkGray> <ThemedText.DeprecatedDarkGray>
<Trans>(${usdcPrice.toFixed(visibleDecimalPlaces, { groupSeparator: ',' })})</Trans> <Trans>(${usdcPrice.toFixed(visibleDecimalPlaces, { groupSeparator: ',' })})</Trans>
</ThemedText.DarkGray> </ThemedText.DeprecatedDarkGray>
)} )}
</StyledPriceContainer> </StyledPriceContainer>
) )
......
...@@ -37,7 +37,7 @@ const StyledButtonEmpty = styled(ButtonEmpty)` ...@@ -37,7 +37,7 @@ const StyledButtonEmpty = styled(ButtonEmpty)`
text-decoration: none; text-decoration: none;
` `
const AddressText = styled(ThemedText.Blue)` const AddressText = styled(ThemedText.DeprecatedBlue)`
font-size: 12px; font-size: 12px;
${({ theme }) => theme.mediaWidth.upToSmall` ${({ theme }) => theme.mediaWidth.upToSmall`
...@@ -70,9 +70,9 @@ export default function UnsupportedCurrencyFooter({ ...@@ -70,9 +70,9 @@ export default function UnsupportedCurrencyFooter({
<Card padding="2rem"> <Card padding="2rem">
<AutoColumn gap="lg"> <AutoColumn gap="lg">
<RowBetween> <RowBetween>
<ThemedText.MediumHeader> <ThemedText.DeprecatedMediumHeader>
<Trans>Unsupported Assets</Trans> <Trans>Unsupported Assets</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<CloseIcon onClick={() => setShowDetails(false)} /> <CloseIcon onClick={() => setShowDetails(false)} />
</RowBetween> </RowBetween>
{tokens.map((token) => { {tokens.map((token) => {
...@@ -84,7 +84,7 @@ export default function UnsupportedCurrencyFooter({ ...@@ -84,7 +84,7 @@ export default function UnsupportedCurrencyFooter({
<AutoColumn gap="10px"> <AutoColumn gap="10px">
<AutoRow gap="5px" align="center"> <AutoRow gap="5px" align="center">
<CurrencyLogo currency={token} size={'24px'} /> <CurrencyLogo currency={token} size={'24px'} />
<ThemedText.Body fontWeight={500}>{token.symbol}</ThemedText.Body> <ThemedText.DeprecatedBody fontWeight={500}>{token.symbol}</ThemedText.DeprecatedBody>
</AutoRow> </AutoRow>
{chainId && ( {chainId && (
<ExternalLink href={getExplorerLink(chainId, token.address, ExplorerDataType.ADDRESS)}> <ExternalLink href={getExplorerLink(chainId, token.address, ExplorerDataType.ADDRESS)}>
...@@ -97,20 +97,20 @@ export default function UnsupportedCurrencyFooter({ ...@@ -97,20 +97,20 @@ export default function UnsupportedCurrencyFooter({
) )
})} })}
<AutoColumn gap="lg"> <AutoColumn gap="lg">
<ThemedText.Body fontWeight={500}> <ThemedText.DeprecatedBody fontWeight={500}>
<Trans> <Trans>
Some assets are not available through this interface because they may not work well with the smart Some assets are not available through this interface because they may not work well with the smart
contracts or we are unable to allow trading for legal reasons. contracts or we are unable to allow trading for legal reasons.
</Trans> </Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
</AutoColumn> </AutoColumn>
</Card> </Card>
</Modal> </Modal>
<StyledButtonEmpty padding={'0'} onClick={() => setShowDetails(true)}> <StyledButtonEmpty padding={'0'} onClick={() => setShowDetails(true)}>
<ThemedText.Blue> <ThemedText.DeprecatedBlue>
<Trans>Read more about unsupported assets</Trans> <Trans>Read more about unsupported assets</Trans>
</ThemedText.Blue> </ThemedText.DeprecatedBlue>
</StyledButtonEmpty> </StyledButtonEmpty>
</DetailsFooter> </DetailsFooter>
) )
......
...@@ -133,7 +133,7 @@ export const SwapShowAcceptChanges = styled(AutoColumn)` ...@@ -133,7 +133,7 @@ export const SwapShowAcceptChanges = styled(AutoColumn)`
margin-top: 8px; margin-top: 8px;
` `
export const TransactionDetailsLabel = styled(ThemedText.Black)` export const TransactionDetailsLabel = styled(ThemedText.DeprecatedBlack)`
border-bottom: 1px solid ${({ theme }) => theme.deprecated_bg2}; border-bottom: 1px solid ${({ theme }) => theme.deprecated_bg2};
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
` `
......
...@@ -95,25 +95,25 @@ export default function DelegateModal({ isOpen, onDismiss, title }: VoteModalPro ...@@ -95,25 +95,25 @@ export default function DelegateModal({ isOpen, onDismiss, title }: VoteModalPro
<ContentWrapper gap="lg"> <ContentWrapper gap="lg">
<AutoColumn gap="lg" justify="center"> <AutoColumn gap="lg" justify="center">
<RowBetween> <RowBetween>
<ThemedText.MediumHeader fontWeight={500}>{title}</ThemedText.MediumHeader> <ThemedText.DeprecatedMediumHeader fontWeight={500}>{title}</ThemedText.DeprecatedMediumHeader>
<StyledClosed stroke="black" onClick={wrappedOnDismiss} /> <StyledClosed stroke="black" onClick={wrappedOnDismiss} />
</RowBetween> </RowBetween>
<ThemedText.Body> <ThemedText.DeprecatedBody>
<Trans>Earned UNI tokens represent voting shares in Uniswap governance.</Trans> <Trans>Earned UNI tokens represent voting shares in Uniswap governance.</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.Body> <ThemedText.DeprecatedBody>
<Trans>You can either vote on each proposal yourself or delegate your votes to a third party.</Trans> <Trans>You can either vote on each proposal yourself or delegate your votes to a third party.</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
{usingDelegate && <AddressInputPanel value={typed} onChange={handleRecipientType} />} {usingDelegate && <AddressInputPanel value={typed} onChange={handleRecipientType} />}
<ButtonPrimary disabled={!isAddress(parsedAddress ?? '')} onClick={onDelegate}> <ButtonPrimary disabled={!isAddress(parsedAddress ?? '')} onClick={onDelegate}>
<ThemedText.MediumHeader color="white"> <ThemedText.DeprecatedMediumHeader color="white">
{usingDelegate ? <Trans>Delegate Votes</Trans> : <Trans>Self Delegate</Trans>} {usingDelegate ? <Trans>Delegate Votes</Trans> : <Trans>Self Delegate</Trans>}
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
</ButtonPrimary> </ButtonPrimary>
<TextButton onClick={() => setUsingDelegate(!usingDelegate)}> <TextButton onClick={() => setUsingDelegate(!usingDelegate)}>
<ThemedText.Blue> <ThemedText.DeprecatedBlue>
{usingDelegate ? <Trans>Remove Delegate</Trans> : <Trans>Add Delegate +</Trans>} {usingDelegate ? <Trans>Remove Delegate</Trans> : <Trans>Add Delegate +</Trans>}
</ThemedText.Blue> </ThemedText.DeprecatedBlue>
</TextButton> </TextButton>
</AutoColumn> </AutoColumn>
</ContentWrapper> </ContentWrapper>
...@@ -121,20 +121,20 @@ export default function DelegateModal({ isOpen, onDismiss, title }: VoteModalPro ...@@ -121,20 +121,20 @@ export default function DelegateModal({ isOpen, onDismiss, title }: VoteModalPro
{attempting && !hash && ( {attempting && !hash && (
<LoadingView onDismiss={wrappedOnDismiss}> <LoadingView onDismiss={wrappedOnDismiss}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
{usingDelegate ? <Trans>Delegating votes</Trans> : <Trans>Unlocking Votes</Trans>} {usingDelegate ? <Trans>Delegating votes</Trans> : <Trans>Unlocking Votes</Trans>}
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
<ThemedText.Main fontSize={36}> {formatCurrencyAmount(uniBalance, 4)}</ThemedText.Main> <ThemedText.DeprecatedMain fontSize={36}> {formatCurrencyAmount(uniBalance, 4)}</ThemedText.DeprecatedMain>
</AutoColumn> </AutoColumn>
</LoadingView> </LoadingView>
)} )}
{hash && ( {hash && (
<SubmittedView onDismiss={wrappedOnDismiss} hash={hash}> <SubmittedView onDismiss={wrappedOnDismiss} hash={hash}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
<Trans>Transaction Submitted</Trans> <Trans>Transaction Submitted</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
<ThemedText.Main fontSize={36}>{formatCurrencyAmount(uniBalance, 4)}</ThemedText.Main> <ThemedText.DeprecatedMain fontSize={36}>{formatCurrencyAmount(uniBalance, 4)}</ThemedText.DeprecatedMain>
</AutoColumn> </AutoColumn>
</SubmittedView> </SubmittedView>
)} )}
......
...@@ -81,20 +81,20 @@ export default function ExecuteModal({ isOpen, onDismiss, proposalId }: ExecuteM ...@@ -81,20 +81,20 @@ export default function ExecuteModal({ isOpen, onDismiss, proposalId }: ExecuteM
<ContentWrapper gap="lg"> <ContentWrapper gap="lg">
<AutoColumn gap="lg" justify="center"> <AutoColumn gap="lg" justify="center">
<RowBetween> <RowBetween>
<ThemedText.MediumHeader fontWeight={500}> <ThemedText.DeprecatedMediumHeader fontWeight={500}>
<Trans>Execute Proposal {proposalId}</Trans> <Trans>Execute Proposal {proposalId}</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<StyledClosed onClick={wrappedOnDismiss} /> <StyledClosed onClick={wrappedOnDismiss} />
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<ThemedText.Body> <ThemedText.DeprecatedBody>
<Trans>Executing this proposal will enact the calldata on-chain.</Trans> <Trans>Executing this proposal will enact the calldata on-chain.</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</RowBetween> </RowBetween>
<ButtonPrimary onClick={onExecute}> <ButtonPrimary onClick={onExecute}>
<ThemedText.MediumHeader color="white"> <ThemedText.DeprecatedMediumHeader color="white">
<Trans>Execute</Trans> <Trans>Execute</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
</ButtonPrimary> </ButtonPrimary>
</AutoColumn> </AutoColumn>
</ContentWrapper> </ContentWrapper>
...@@ -110,13 +110,13 @@ export default function ExecuteModal({ isOpen, onDismiss, proposalId }: ExecuteM ...@@ -110,13 +110,13 @@ export default function ExecuteModal({ isOpen, onDismiss, proposalId }: ExecuteM
</ConfirmedIcon> </ConfirmedIcon>
<AutoColumn gap="100px" justify={'center'}> <AutoColumn gap="100px" justify={'center'}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
<Trans>Executing</Trans> <Trans>Executing</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
</AutoColumn> </AutoColumn>
<ThemedText.SubHeader> <ThemedText.DeprecatedSubHeader>
<Trans>Confirm this transaction in your wallet</Trans> <Trans>Confirm this transaction in your wallet</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</AutoColumn> </AutoColumn>
</ConfirmOrLoadingWrapper> </ConfirmOrLoadingWrapper>
)} )}
...@@ -131,18 +131,18 @@ export default function ExecuteModal({ isOpen, onDismiss, proposalId }: ExecuteM ...@@ -131,18 +131,18 @@ export default function ExecuteModal({ isOpen, onDismiss, proposalId }: ExecuteM
</ConfirmedIcon> </ConfirmedIcon>
<AutoColumn gap="100px" justify={'center'}> <AutoColumn gap="100px" justify={'center'}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
<Trans>Execution Submitted</Trans> <Trans>Execution Submitted</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
</AutoColumn> </AutoColumn>
{chainId && ( {chainId && (
<ExternalLink <ExternalLink
href={getExplorerLink(chainId, hash, ExplorerDataType.TRANSACTION)} href={getExplorerLink(chainId, hash, ExplorerDataType.TRANSACTION)}
style={{ marginLeft: '4px' }} style={{ marginLeft: '4px' }}
> >
<ThemedText.SubHeader> <ThemedText.DeprecatedSubHeader>
<Trans>View transaction on Explorer</Trans> <Trans>View transaction on Explorer</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</ExternalLink> </ExternalLink>
)} )}
</AutoColumn> </AutoColumn>
......
...@@ -25,14 +25,14 @@ interface EmptyStateProps { ...@@ -25,14 +25,14 @@ interface EmptyStateProps {
} }
const EmptyState = ({ HeaderContent, SubHeaderContent }: EmptyStateProps) => ( const EmptyState = ({ HeaderContent, SubHeaderContent }: EmptyStateProps) => (
<EmptyProposals> <EmptyProposals>
<ThemedText.Body style={{ marginBottom: '8px' }}> <ThemedText.DeprecatedBody style={{ marginBottom: '8px' }}>
<HeaderContent /> <HeaderContent />
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.SubHeader> <ThemedText.DeprecatedSubHeader>
<Sub> <Sub>
<SubHeaderContent /> <SubHeaderContent />
</Sub> </Sub>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</EmptyProposals> </EmptyProposals>
) )
......
...@@ -81,20 +81,20 @@ export default function QueueModal({ isOpen, onDismiss, proposalId }: QueueModal ...@@ -81,20 +81,20 @@ export default function QueueModal({ isOpen, onDismiss, proposalId }: QueueModal
<ContentWrapper gap="lg"> <ContentWrapper gap="lg">
<AutoColumn gap="lg" justify="center"> <AutoColumn gap="lg" justify="center">
<RowBetween> <RowBetween>
<ThemedText.MediumHeader fontWeight={500}> <ThemedText.DeprecatedMediumHeader fontWeight={500}>
<Trans>Queue Proposal {proposalId}</Trans> <Trans>Queue Proposal {proposalId}</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<StyledClosed onClick={wrappedOnDismiss} /> <StyledClosed onClick={wrappedOnDismiss} />
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<ThemedText.Body> <ThemedText.DeprecatedBody>
<Trans>Adding this proposal to the queue will allow it to be executed, after a delay.</Trans> <Trans>Adding this proposal to the queue will allow it to be executed, after a delay.</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</RowBetween> </RowBetween>
<ButtonPrimary onClick={onQueue}> <ButtonPrimary onClick={onQueue}>
<ThemedText.MediumHeader color="white"> <ThemedText.DeprecatedMediumHeader color="white">
<Trans>Queue</Trans> <Trans>Queue</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
</ButtonPrimary> </ButtonPrimary>
</AutoColumn> </AutoColumn>
</ContentWrapper> </ContentWrapper>
...@@ -110,13 +110,13 @@ export default function QueueModal({ isOpen, onDismiss, proposalId }: QueueModal ...@@ -110,13 +110,13 @@ export default function QueueModal({ isOpen, onDismiss, proposalId }: QueueModal
</ConfirmedIcon> </ConfirmedIcon>
<AutoColumn gap="100px" justify={'center'}> <AutoColumn gap="100px" justify={'center'}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
<Trans>Queueing</Trans> <Trans>Queueing</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
</AutoColumn> </AutoColumn>
<ThemedText.SubHeader> <ThemedText.DeprecatedSubHeader>
<Trans>Confirm this transaction in your wallet</Trans> <Trans>Confirm this transaction in your wallet</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</AutoColumn> </AutoColumn>
</ConfirmOrLoadingWrapper> </ConfirmOrLoadingWrapper>
)} )}
...@@ -131,18 +131,18 @@ export default function QueueModal({ isOpen, onDismiss, proposalId }: QueueModal ...@@ -131,18 +131,18 @@ export default function QueueModal({ isOpen, onDismiss, proposalId }: QueueModal
</ConfirmedIcon> </ConfirmedIcon>
<AutoColumn gap="100px" justify={'center'}> <AutoColumn gap="100px" justify={'center'}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
<Trans>Transaction Submitted</Trans> <Trans>Transaction Submitted</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
</AutoColumn> </AutoColumn>
{chainId && ( {chainId && (
<ExternalLink <ExternalLink
href={getExplorerLink(chainId, hash, ExplorerDataType.TRANSACTION)} href={getExplorerLink(chainId, hash, ExplorerDataType.TRANSACTION)}
style={{ marginLeft: '4px' }} style={{ marginLeft: '4px' }}
> >
<ThemedText.SubHeader> <ThemedText.DeprecatedSubHeader>
<Trans>View transaction on Explorer</Trans> <Trans>View transaction on Explorer</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</ExternalLink> </ExternalLink>
)} )}
</AutoColumn> </AutoColumn>
......
...@@ -85,7 +85,7 @@ export default function VoteModal({ isOpen, onDismiss, proposalId, voteOption }: ...@@ -85,7 +85,7 @@ export default function VoteModal({ isOpen, onDismiss, proposalId, voteOption }:
<ContentWrapper gap="lg"> <ContentWrapper gap="lg">
<AutoColumn gap="lg" justify="center"> <AutoColumn gap="lg" justify="center">
<RowBetween> <RowBetween>
<ThemedText.MediumHeader fontWeight={500}> <ThemedText.DeprecatedMediumHeader fontWeight={500}>
{voteOption === VoteOption.Against ? ( {voteOption === VoteOption.Against ? (
<Trans>Vote against proposal {proposalId}</Trans> <Trans>Vote against proposal {proposalId}</Trans>
) : voteOption === VoteOption.For ? ( ) : voteOption === VoteOption.For ? (
...@@ -93,14 +93,14 @@ export default function VoteModal({ isOpen, onDismiss, proposalId, voteOption }: ...@@ -93,14 +93,14 @@ export default function VoteModal({ isOpen, onDismiss, proposalId, voteOption }:
) : ( ) : (
<Trans>Vote to abstain on proposal {proposalId}</Trans> <Trans>Vote to abstain on proposal {proposalId}</Trans>
)} )}
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<StyledClosed onClick={wrappedOnDismiss} /> <StyledClosed onClick={wrappedOnDismiss} />
</RowBetween> </RowBetween>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
<Trans>{formatCurrencyAmount(availableVotes, 4)} Votes</Trans> <Trans>{formatCurrencyAmount(availableVotes, 4)} Votes</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
<ButtonPrimary onClick={onVote}> <ButtonPrimary onClick={onVote}>
<ThemedText.MediumHeader color="white"> <ThemedText.DeprecatedMediumHeader color="white">
{voteOption === VoteOption.Against ? ( {voteOption === VoteOption.Against ? (
<Trans>Vote against proposal {proposalId}</Trans> <Trans>Vote against proposal {proposalId}</Trans>
) : voteOption === VoteOption.For ? ( ) : voteOption === VoteOption.For ? (
...@@ -108,7 +108,7 @@ export default function VoteModal({ isOpen, onDismiss, proposalId, voteOption }: ...@@ -108,7 +108,7 @@ export default function VoteModal({ isOpen, onDismiss, proposalId, voteOption }:
) : ( ) : (
<Trans>Vote to abstain on proposal {proposalId}</Trans> <Trans>Vote to abstain on proposal {proposalId}</Trans>
)} )}
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
</ButtonPrimary> </ButtonPrimary>
</AutoColumn> </AutoColumn>
</ContentWrapper> </ContentWrapper>
...@@ -124,13 +124,13 @@ export default function VoteModal({ isOpen, onDismiss, proposalId, voteOption }: ...@@ -124,13 +124,13 @@ export default function VoteModal({ isOpen, onDismiss, proposalId, voteOption }:
</ConfirmedIcon> </ConfirmedIcon>
<AutoColumn gap="100px" justify={'center'}> <AutoColumn gap="100px" justify={'center'}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
<Trans>Submitting Vote</Trans> <Trans>Submitting Vote</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
</AutoColumn> </AutoColumn>
<ThemedText.SubHeader> <ThemedText.DeprecatedSubHeader>
<Trans>Confirm this transaction in your wallet</Trans> <Trans>Confirm this transaction in your wallet</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</AutoColumn> </AutoColumn>
</ConfirmOrLoadingWrapper> </ConfirmOrLoadingWrapper>
)} )}
...@@ -145,18 +145,18 @@ export default function VoteModal({ isOpen, onDismiss, proposalId, voteOption }: ...@@ -145,18 +145,18 @@ export default function VoteModal({ isOpen, onDismiss, proposalId, voteOption }:
</ConfirmedIcon> </ConfirmedIcon>
<AutoColumn gap="100px" justify={'center'}> <AutoColumn gap="100px" justify={'center'}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
<Trans>Transaction Submitted</Trans> <Trans>Transaction Submitted</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
</AutoColumn> </AutoColumn>
{chainId && ( {chainId && (
<ExternalLink <ExternalLink
href={getExplorerLink(chainId, hash, ExplorerDataType.TRANSACTION)} href={getExplorerLink(chainId, hash, ExplorerDataType.TRANSACTION)}
style={{ marginLeft: '4px' }} style={{ marginLeft: '4px' }}
> >
<ThemedText.SubHeader> <ThemedText.DeprecatedSubHeader>
<Trans>View transaction on Explorer</Trans> <Trans>View transaction on Explorer</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</ExternalLink> </ExternalLink>
)} )}
</AutoColumn> </AutoColumn>
......
This diff is collapsed.
...@@ -26,47 +26,47 @@ export function ConfirmAddModalBottom({ ...@@ -26,47 +26,47 @@ export function ConfirmAddModalBottom({
return ( return (
<> <>
<RowBetween> <RowBetween>
<ThemedText.Body> <ThemedText.DeprecatedBody>
<Trans>{currencies[Field.CURRENCY_A]?.symbol} Deposited</Trans> <Trans>{currencies[Field.CURRENCY_A]?.symbol} Deposited</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<RowFixed> <RowFixed>
<CurrencyLogo currency={currencies[Field.CURRENCY_A]} style={{ marginRight: '8px' }} /> <CurrencyLogo currency={currencies[Field.CURRENCY_A]} style={{ marginRight: '8px' }} />
<ThemedText.Body>{parsedAmounts[Field.CURRENCY_A]?.toSignificant(6)}</ThemedText.Body> <ThemedText.DeprecatedBody>{parsedAmounts[Field.CURRENCY_A]?.toSignificant(6)}</ThemedText.DeprecatedBody>
</RowFixed> </RowFixed>
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<ThemedText.Body> <ThemedText.DeprecatedBody>
<Trans>{currencies[Field.CURRENCY_B]?.symbol} Deposited</Trans> <Trans>{currencies[Field.CURRENCY_B]?.symbol} Deposited</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<RowFixed> <RowFixed>
<CurrencyLogo currency={currencies[Field.CURRENCY_B]} style={{ marginRight: '8px' }} /> <CurrencyLogo currency={currencies[Field.CURRENCY_B]} style={{ marginRight: '8px' }} />
<ThemedText.Body>{parsedAmounts[Field.CURRENCY_B]?.toSignificant(6)}</ThemedText.Body> <ThemedText.DeprecatedBody>{parsedAmounts[Field.CURRENCY_B]?.toSignificant(6)}</ThemedText.DeprecatedBody>
</RowFixed> </RowFixed>
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<ThemedText.Body> <ThemedText.DeprecatedBody>
<Trans>Rates</Trans> <Trans>Rates</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.Body> <ThemedText.DeprecatedBody>
{`1 ${currencies[Field.CURRENCY_A]?.symbol} = ${price?.toSignificant(4)} ${ {`1 ${currencies[Field.CURRENCY_A]?.symbol} = ${price?.toSignificant(4)} ${
currencies[Field.CURRENCY_B]?.symbol currencies[Field.CURRENCY_B]?.symbol
}`} }`}
</ThemedText.Body> </ThemedText.DeprecatedBody>
</RowBetween> </RowBetween>
<RowBetween style={{ justifyContent: 'flex-end' }}> <RowBetween style={{ justifyContent: 'flex-end' }}>
<ThemedText.Body> <ThemedText.DeprecatedBody>
{`1 ${currencies[Field.CURRENCY_B]?.symbol} = ${price?.invert().toSignificant(4)} ${ {`1 ${currencies[Field.CURRENCY_B]?.symbol} = ${price?.invert().toSignificant(4)} ${
currencies[Field.CURRENCY_A]?.symbol currencies[Field.CURRENCY_A]?.symbol
}`} }`}
</ThemedText.Body> </ThemedText.DeprecatedBody>
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<ThemedText.Body> <ThemedText.DeprecatedBody>
<Trans>Share of Pool:</Trans> <Trans>Share of Pool:</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.Body> <ThemedText.DeprecatedBody>
<Trans>{noLiquidity ? '100' : poolTokenPercentage?.toSignificant(4)}%</Trans> <Trans>{noLiquidity ? '100' : poolTokenPercentage?.toSignificant(4)}%</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</RowBetween> </RowBetween>
<ButtonPrimary style={{ margin: '20px 0 0 0' }} onClick={onAdd}> <ButtonPrimary style={{ margin: '20px 0 0 0' }} onClick={onAdd}>
<Text fontWeight={500} fontSize={20}> <Text fontWeight={500} fontSize={20}>
......
...@@ -26,7 +26,7 @@ export function PoolPriceBar({ ...@@ -26,7 +26,7 @@ export function PoolPriceBar({
<AutoColumn gap="md"> <AutoColumn gap="md">
<AutoRow justify="space-around" gap="4px"> <AutoRow justify="space-around" gap="4px">
<AutoColumn justify="center"> <AutoColumn justify="center">
<ThemedText.Black>{price?.toSignificant(6) ?? '-'}</ThemedText.Black> <ThemedText.DeprecatedBlack>{price?.toSignificant(6) ?? '-'}</ThemedText.DeprecatedBlack>
<Text fontWeight={500} fontSize={14} color={theme.deprecated_text2} pt={1}> <Text fontWeight={500} fontSize={14} color={theme.deprecated_text2} pt={1}>
<Trans> <Trans>
{currencies[Field.CURRENCY_B]?.symbol} per {currencies[Field.CURRENCY_A]?.symbol} {currencies[Field.CURRENCY_B]?.symbol} per {currencies[Field.CURRENCY_A]?.symbol}
...@@ -34,7 +34,7 @@ export function PoolPriceBar({ ...@@ -34,7 +34,7 @@ export function PoolPriceBar({
</Text> </Text>
</AutoColumn> </AutoColumn>
<AutoColumn justify="center"> <AutoColumn justify="center">
<ThemedText.Black>{price?.invert()?.toSignificant(6) ?? '-'}</ThemedText.Black> <ThemedText.DeprecatedBlack>{price?.invert()?.toSignificant(6) ?? '-'}</ThemedText.DeprecatedBlack>
<Text fontWeight={500} fontSize={14} color={theme.deprecated_text2} pt={1}> <Text fontWeight={500} fontSize={14} color={theme.deprecated_text2} pt={1}>
<Trans> <Trans>
{currencies[Field.CURRENCY_A]?.symbol} per {currencies[Field.CURRENCY_B]?.symbol} {currencies[Field.CURRENCY_A]?.symbol} per {currencies[Field.CURRENCY_B]?.symbol}
...@@ -42,12 +42,12 @@ export function PoolPriceBar({ ...@@ -42,12 +42,12 @@ export function PoolPriceBar({
</Text> </Text>
</AutoColumn> </AutoColumn>
<AutoColumn justify="center"> <AutoColumn justify="center">
<ThemedText.Black> <ThemedText.DeprecatedBlack>
{noLiquidity && price {noLiquidity && price
? '100' ? '100'
: (poolTokenPercentage?.lessThan(ONE_BIPS) ? '<0.01' : poolTokenPercentage?.toFixed(2)) ?? '0'} : (poolTokenPercentage?.lessThan(ONE_BIPS) ? '<0.01' : poolTokenPercentage?.toFixed(2)) ?? '0'}
% %
</ThemedText.Black> </ThemedText.DeprecatedBlack>
<Text fontWeight={500} fontSize={14} color={theme.deprecated_text2} pt={1}> <Text fontWeight={500} fontSize={14} color={theme.deprecated_text2} pt={1}>
<Trans>Share of Pool</Trans> <Trans>Share of Pool</Trans>
</Text> </Text>
......
...@@ -249,12 +249,12 @@ export default function AddLiquidity() { ...@@ -249,12 +249,12 @@ export default function AddLiquidity() {
{currencies[Field.CURRENCY_A]?.symbol + '/' + currencies[Field.CURRENCY_B]?.symbol + ' Pool Tokens'} {currencies[Field.CURRENCY_A]?.symbol + '/' + currencies[Field.CURRENCY_B]?.symbol + ' Pool Tokens'}
</Text> </Text>
</Row> </Row>
<ThemedText.Italic fontSize={12} textAlign="left" padding={'8px 0 0 0 '}> <ThemedText.DeprecatedItalic fontSize={12} textAlign="left" padding={'8px 0 0 0 '}>
<Trans> <Trans>
Output is estimated. If the price changes by more than {allowedSlippage.toSignificant(4)}% your transaction Output is estimated. If the price changes by more than {allowedSlippage.toSignificant(4)}% your transaction
will revert. will revert.
</Trans> </Trans>
</ThemedText.Italic> </ThemedText.DeprecatedItalic>
</AutoColumn> </AutoColumn>
) )
} }
...@@ -347,15 +347,15 @@ export default function AddLiquidity() { ...@@ -347,15 +347,15 @@ export default function AddLiquidity() {
<ColumnCenter> <ColumnCenter>
<BlueCard> <BlueCard>
<AutoColumn gap="10px"> <AutoColumn gap="10px">
<ThemedText.Link fontWeight={600} color={'deprecated_primaryText1'}> <ThemedText.DeprecatedLink fontWeight={600} color={'deprecated_primaryText1'}>
<Trans>You are the first liquidity provider.</Trans> <Trans>You are the first liquidity provider.</Trans>
</ThemedText.Link> </ThemedText.DeprecatedLink>
<ThemedText.Link fontWeight={400} color={'deprecated_primaryText1'}> <ThemedText.DeprecatedLink fontWeight={400} color={'deprecated_primaryText1'}>
<Trans>The ratio of tokens you add will set the price of this pool.</Trans> <Trans>The ratio of tokens you add will set the price of this pool.</Trans>
</ThemedText.Link> </ThemedText.DeprecatedLink>
<ThemedText.Link fontWeight={400} color={'deprecated_primaryText1'}> <ThemedText.DeprecatedLink fontWeight={400} color={'deprecated_primaryText1'}>
<Trans>Once you are happy with the rate click supply to review.</Trans> <Trans>Once you are happy with the rate click supply to review.</Trans>
</ThemedText.Link> </ThemedText.DeprecatedLink>
</AutoColumn> </AutoColumn>
</BlueCard> </BlueCard>
</ColumnCenter> </ColumnCenter>
...@@ -363,7 +363,7 @@ export default function AddLiquidity() { ...@@ -363,7 +363,7 @@ export default function AddLiquidity() {
<ColumnCenter> <ColumnCenter>
<BlueCard> <BlueCard>
<AutoColumn gap="10px"> <AutoColumn gap="10px">
<ThemedText.Link fontWeight={400} color={'deprecated_primaryText1'}> <ThemedText.DeprecatedLink fontWeight={400} color={'deprecated_primaryText1'}>
<Trans> <Trans>
<b> <b>
<Trans>Tip:</Trans> <Trans>Tip:</Trans>
...@@ -372,7 +372,7 @@ export default function AddLiquidity() { ...@@ -372,7 +372,7 @@ export default function AddLiquidity() {
automatically earn fees proportional to your share of the pool, and can be redeemed at any automatically earn fees proportional to your share of the pool, and can be redeemed at any
time. time.
</Trans> </Trans>
</ThemedText.Link> </ThemedText.DeprecatedLink>
</AutoColumn> </AutoColumn>
</BlueCard> </BlueCard>
</ColumnCenter> </ColumnCenter>
...@@ -408,13 +408,13 @@ export default function AddLiquidity() { ...@@ -408,13 +408,13 @@ export default function AddLiquidity() {
<> <>
<LightCard padding="0px" $borderRadius={'20px'}> <LightCard padding="0px" $borderRadius={'20px'}>
<RowBetween padding="1rem"> <RowBetween padding="1rem">
<ThemedText.SubHeader fontWeight={500} fontSize={14}> <ThemedText.DeprecatedSubHeader fontWeight={500} fontSize={14}>
{noLiquidity ? ( {noLiquidity ? (
<Trans>Initial prices and pool share</Trans> <Trans>Initial prices and pool share</Trans>
) : ( ) : (
<Trans>Prices and pool share</Trans> <Trans>Prices and pool share</Trans>
)} )}
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</RowBetween>{' '} </RowBetween>{' '}
<LightCard padding="1rem" $borderRadius={'20px'}> <LightCard padding="1rem" $borderRadius={'20px'}>
<PoolPriceBar <PoolPriceBar
...@@ -430,9 +430,9 @@ export default function AddLiquidity() { ...@@ -430,9 +430,9 @@ export default function AddLiquidity() {
{addIsUnsupported ? ( {addIsUnsupported ? (
<ButtonPrimary disabled={true}> <ButtonPrimary disabled={true}>
<ThemedText.Main mb="4px"> <ThemedText.DeprecatedMain mb="4px">
<Trans>Unsupported Asset</Trans> <Trans>Unsupported Asset</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</ButtonPrimary> </ButtonPrimary>
) : !account ? ( ) : !account ? (
<TraceEvent <TraceEvent
......
...@@ -26,9 +26,9 @@ export const ProposalSubmissionModal = ({ ...@@ -26,9 +26,9 @@ export const ProposalSubmissionModal = ({
{!hash ? ( {!hash ? (
<LoadingView onDismiss={onDismiss}> <LoadingView onDismiss={onDismiss}>
<AutoColumn gap="12px" justify={'center'}> <AutoColumn gap="12px" justify={'center'}>
<ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader>
<Trans>Submitting Proposal</Trans> <Trans>Submitting Proposal</Trans>
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
</AutoColumn> </AutoColumn>
</LoadingView> </LoadingView>
) : ( ) : (
......
...@@ -233,7 +233,7 @@ ${bodyValue} ...@@ -233,7 +233,7 @@ ${bodyValue}
<CreateProposalWrapper> <CreateProposalWrapper>
<BlueCard> <BlueCard>
<AutoColumn gap="10px"> <AutoColumn gap="10px">
<ThemedText.Link fontWeight={400} color={'deprecated_primaryText1'}> <ThemedText.DeprecatedLink fontWeight={400} color={'deprecated_primaryText1'}>
<Trans> <Trans>
<strong>Tip:</strong> Select an action and describe your proposal for the community. The proposal <strong>Tip:</strong> Select an action and describe your proposal for the community. The proposal
cannot be modified after submission, so please verify all information before submitting. The voting cannot be modified after submission, so please verify all information before submitting. The voting
...@@ -243,7 +243,7 @@ ${bodyValue} ...@@ -243,7 +243,7 @@ ${bodyValue}
</ExternalLink> </ExternalLink>
. .
</Trans> </Trans>
</ThemedText.Link> </ThemedText.DeprecatedLink>
</AutoColumn> </AutoColumn>
</BlueCard> </BlueCard>
......
...@@ -56,7 +56,7 @@ export function Countdown({ exactEnd }: { exactEnd?: Date }) { ...@@ -56,7 +56,7 @@ export function Countdown({ exactEnd }: { exactEnd?: Date }) {
const seconds = timeRemaining const seconds = timeRemaining
return ( return (
<ThemedText.Black fontWeight={400}> <ThemedText.DeprecatedBlack fontWeight={400}>
{message}{' '} {message}{' '}
{Number.isFinite(timeRemaining) && ( {Number.isFinite(timeRemaining) && (
<code> <code>
...@@ -65,6 +65,6 @@ export function Countdown({ exactEnd }: { exactEnd?: Date }) { ...@@ -65,6 +65,6 @@ export function Countdown({ exactEnd }: { exactEnd?: Date }) {
.padStart(2, '0')}`} .padStart(2, '0')}`}
</code> </code>
)} )}
</ThemedText.Black> </ThemedText.DeprecatedBlack>
) )
} }
...@@ -153,33 +153,33 @@ export default function Manage() { ...@@ -153,33 +153,33 @@ export default function Manage() {
return ( return (
<PageWrapper gap="lg" justify="center"> <PageWrapper gap="lg" justify="center">
<RowBetween style={{ gap: '24px' }}> <RowBetween style={{ gap: '24px' }}>
<ThemedText.MediumHeader style={{ margin: 0 }}> <ThemedText.DeprecatedMediumHeader style={{ margin: 0 }}>
<Trans> <Trans>
{currencyA?.symbol}-{currencyB?.symbol} Liquidity Mining {currencyA?.symbol}-{currencyB?.symbol} Liquidity Mining
</Trans> </Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<DoubleCurrencyLogo currency0={currencyA ?? undefined} currency1={currencyB ?? undefined} size={24} /> <DoubleCurrencyLogo currency0={currencyA ?? undefined} currency1={currencyB ?? undefined} size={24} />
</RowBetween> </RowBetween>
<DataRow style={{ gap: '24px' }}> <DataRow style={{ gap: '24px' }}>
<PoolData> <PoolData>
<AutoColumn gap="sm"> <AutoColumn gap="sm">
<ThemedText.Body style={{ margin: 0 }}> <ThemedText.DeprecatedBody style={{ margin: 0 }}>
<Trans>Total deposits</Trans> <Trans>Total deposits</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.Body fontSize={24} fontWeight={500}> <ThemedText.DeprecatedBody fontSize={24} fontWeight={500}>
{valueOfTotalStakedAmountInUSDC {valueOfTotalStakedAmountInUSDC
? `$${valueOfTotalStakedAmountInUSDC.toFixed(0, { groupSeparator: ',' })}` ? `$${valueOfTotalStakedAmountInUSDC.toFixed(0, { groupSeparator: ',' })}`
: `${valueOfTotalStakedAmountInWETH?.toSignificant(4, { groupSeparator: ',' }) ?? '-'} ETH`} : `${valueOfTotalStakedAmountInWETH?.toSignificant(4, { groupSeparator: ',' }) ?? '-'} ETH`}
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
</PoolData> </PoolData>
<PoolData> <PoolData>
<AutoColumn gap="sm"> <AutoColumn gap="sm">
<ThemedText.Body style={{ margin: 0 }}> <ThemedText.DeprecatedBody style={{ margin: 0 }}>
<Trans>Pool Rate</Trans> <Trans>Pool Rate</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ThemedText.Body fontSize={24} fontWeight={500}> <ThemedText.DeprecatedBody fontSize={24} fontWeight={500}>
{stakingInfo?.active ? ( {stakingInfo?.active ? (
<Trans> <Trans>
{stakingInfo.totalRewardRate?.multiply(BIG_INT_SECONDS_IN_WEEK)?.toFixed(0, { groupSeparator: ',' })}{' '} {stakingInfo.totalRewardRate?.multiply(BIG_INT_SECONDS_IN_WEEK)?.toFixed(0, { groupSeparator: ',' })}{' '}
...@@ -188,7 +188,7 @@ export default function Manage() { ...@@ -188,7 +188,7 @@ export default function Manage() {
) : ( ) : (
<Trans>0 UNI / week</Trans> <Trans>0 UNI / week</Trans>
)} )}
</ThemedText.Body> </ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
</PoolData> </PoolData>
</DataRow> </DataRow>
...@@ -200,17 +200,17 @@ export default function Manage() { ...@@ -200,17 +200,17 @@ export default function Manage() {
<CardSection> <CardSection>
<AutoColumn gap="md"> <AutoColumn gap="md">
<RowBetween> <RowBetween>
<ThemedText.White fontWeight={600}> <ThemedText.DeprecatedWhite fontWeight={600}>
<Trans>Step 1. Get UNI-V2 Liquidity tokens</Trans> <Trans>Step 1. Get UNI-V2 Liquidity tokens</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</RowBetween> </RowBetween>
<RowBetween style={{ marginBottom: '1rem' }}> <RowBetween style={{ marginBottom: '1rem' }}>
<ThemedText.White fontSize={14}> <ThemedText.DeprecatedWhite fontSize={14}>
<Trans> <Trans>
UNI-V2 LP tokens are required. Once you&apos;ve added liquidity to the {currencyA?.symbol}- UNI-V2 LP tokens are required. Once you&apos;ve added liquidity to the {currencyA?.symbol}-
{currencyB?.symbol} pool you can stake your liquidity tokens on this page. {currencyB?.symbol} pool you can stake your liquidity tokens on this page.
</Trans> </Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</RowBetween> </RowBetween>
<ButtonPrimary <ButtonPrimary
padding="8px" padding="8px"
...@@ -259,19 +259,19 @@ export default function Manage() { ...@@ -259,19 +259,19 @@ export default function Manage() {
<CardNoise /> <CardNoise />
<AutoColumn gap="md"> <AutoColumn gap="md">
<RowBetween> <RowBetween>
<ThemedText.White fontWeight={600}> <ThemedText.DeprecatedWhite fontWeight={600}>
<Trans>Your liquidity deposits</Trans> <Trans>Your liquidity deposits</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</RowBetween> </RowBetween>
<RowBetween style={{ alignItems: 'baseline' }}> <RowBetween style={{ alignItems: 'baseline' }}>
<ThemedText.White fontSize={36} fontWeight={600}> <ThemedText.DeprecatedWhite fontSize={36} fontWeight={600}>
{stakingInfo?.stakedAmount?.toSignificant(6) ?? '-'} {stakingInfo?.stakedAmount?.toSignificant(6) ?? '-'}
</ThemedText.White> </ThemedText.DeprecatedWhite>
<ThemedText.White> <ThemedText.DeprecatedWhite>
<Trans> <Trans>
UNI-V2 {currencyA?.symbol}-{currencyB?.symbol} UNI-V2 {currencyA?.symbol}-{currencyB?.symbol}
</Trans> </Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</RowBetween> </RowBetween>
</AutoColumn> </AutoColumn>
</CardSection> </CardSection>
...@@ -282,9 +282,9 @@ export default function Manage() { ...@@ -282,9 +282,9 @@ export default function Manage() {
<AutoColumn gap="sm"> <AutoColumn gap="sm">
<RowBetween> <RowBetween>
<div> <div>
<ThemedText.Black> <ThemedText.DeprecatedBlack>
<Trans>Your unclaimed UNI</Trans> <Trans>Your unclaimed UNI</Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</div> </div>
{stakingInfo?.earnedAmount && JSBI.notEqual(BIG_INT_ZERO, stakingInfo?.earnedAmount?.quotient) && ( {stakingInfo?.earnedAmount && JSBI.notEqual(BIG_INT_ZERO, stakingInfo?.earnedAmount?.quotient) && (
<ButtonEmpty <ButtonEmpty
...@@ -298,7 +298,7 @@ export default function Manage() { ...@@ -298,7 +298,7 @@ export default function Manage() {
)} )}
</RowBetween> </RowBetween>
<RowBetween style={{ alignItems: 'baseline' }}> <RowBetween style={{ alignItems: 'baseline' }}>
<ThemedText.LargeHeader fontSize={36} fontWeight={600}> <ThemedText.DeprecatedLargeHeader fontSize={36} fontWeight={600}>
<CountUp <CountUp
key={countUpAmount} key={countUpAmount}
isCounting isCounting
...@@ -308,8 +308,8 @@ export default function Manage() { ...@@ -308,8 +308,8 @@ export default function Manage() {
thousandsSeparator={','} thousandsSeparator={','}
duration={1} duration={1}
/> />
</ThemedText.LargeHeader> </ThemedText.DeprecatedLargeHeader>
<ThemedText.Black fontSize={16} fontWeight={500}> <ThemedText.DeprecatedBlack fontSize={16} fontWeight={500}>
<span role="img" aria-label="wizard-icon" style={{ marginRight: '8px ' }}> <span role="img" aria-label="wizard-icon" style={{ marginRight: '8px ' }}>
</span> </span>
...@@ -322,17 +322,17 @@ export default function Manage() { ...@@ -322,17 +322,17 @@ export default function Manage() {
) : ( ) : (
<Trans>0 UNI / week</Trans> <Trans>0 UNI / week</Trans>
)} )}
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</RowBetween> </RowBetween>
</AutoColumn> </AutoColumn>
</StyledBottomCard> </StyledBottomCard>
</BottomSection> </BottomSection>
<ThemedText.Main style={{ textAlign: 'center' }} fontSize={14}> <ThemedText.DeprecatedMain style={{ textAlign: 'center' }} fontSize={14}>
<span role="img" aria-label="wizard-icon" style={{ marginRight: '8px' }}> <span role="img" aria-label="wizard-icon" style={{ marginRight: '8px' }}>
⭐️ ⭐️
</span> </span>
<Trans>When you withdraw, the contract will automagically claim UNI on your behalf!</Trans> <Trans>When you withdraw, the contract will automagically claim UNI on your behalf!</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
{!showAddLiquidityButton && ( {!showAddLiquidityButton && (
<DataRow style={{ marginBottom: '1rem' }}> <DataRow style={{ marginBottom: '1rem' }}>
...@@ -361,9 +361,9 @@ export default function Manage() { ...@@ -361,9 +361,9 @@ export default function Manage() {
</DataRow> </DataRow>
)} )}
{!userLiquidityUnstaked ? null : userLiquidityUnstaked.equalTo('0') ? null : !stakingInfo?.active ? null : ( {!userLiquidityUnstaked ? null : userLiquidityUnstaked.equalTo('0') ? null : !stakingInfo?.active ? null : (
<ThemedText.Main> <ThemedText.DeprecatedMain>
<Trans>{userLiquidityUnstaked.toSignificant(6)} UNI-V2 LP tokens available</Trans> <Trans>{userLiquidityUnstaked.toSignificant(6)} UNI-V2 LP tokens available</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
)} )}
</PositionInfo> </PositionInfo>
</PageWrapper> </PageWrapper>
......
...@@ -65,25 +65,25 @@ export default function Earn() { ...@@ -65,25 +65,25 @@ export default function Earn() {
<CardSection> <CardSection>
<AutoColumn gap="md"> <AutoColumn gap="md">
<RowBetween> <RowBetween>
<ThemedText.White fontWeight={600}> <ThemedText.DeprecatedWhite fontWeight={600}>
<Trans>Uniswap liquidity mining</Trans> <Trans>Uniswap liquidity mining</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<ThemedText.White fontSize={14}> <ThemedText.DeprecatedWhite fontSize={14}>
<Trans> <Trans>
Deposit your Liquidity Provider tokens to receive UNI, the Uniswap protocol governance token. Deposit your Liquidity Provider tokens to receive UNI, the Uniswap protocol governance token.
</Trans> </Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</RowBetween>{' '} </RowBetween>{' '}
<ExternalLink <ExternalLink
style={{ color: theme.deprecated_white, textDecoration: 'underline' }} style={{ color: theme.deprecated_white, textDecoration: 'underline' }}
href="https://uniswap.org/blog/uni/" href="https://uniswap.org/blog/uni/"
target="_blank" target="_blank"
> >
<ThemedText.White fontSize={14}> <ThemedText.DeprecatedWhite fontSize={14}>
<Trans>Read more about UNI</Trans> <Trans>Read more about UNI</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</ExternalLink> </ExternalLink>
</AutoColumn> </AutoColumn>
</CardSection> </CardSection>
...@@ -94,9 +94,9 @@ export default function Earn() { ...@@ -94,9 +94,9 @@ export default function Earn() {
<AutoColumn gap="lg" style={{ width: '100%', maxWidth: '720px' }}> <AutoColumn gap="lg" style={{ width: '100%', maxWidth: '720px' }}>
<DataRow style={{ alignItems: 'baseline' }}> <DataRow style={{ alignItems: 'baseline' }}>
<ThemedText.MediumHeader style={{ marginTop: '0.5rem' }}> <ThemedText.DeprecatedMediumHeader style={{ marginTop: '0.5rem' }}>
<Trans>Participating pools</Trans> <Trans>Participating pools</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<Countdown exactEnd={stakingInfos?.[0]?.periodFinish} /> <Countdown exactEnd={stakingInfos?.[0]?.periodFinish} />
</DataRow> </DataRow>
......
This diff is collapsed.
...@@ -26,7 +26,7 @@ import { BodyWrapper } from '../AppBody' ...@@ -26,7 +26,7 @@ import { BodyWrapper } from '../AppBody'
function EmptyState({ message }: { message: ReactNode }) { function EmptyState({ message }: { message: ReactNode }) {
return ( return (
<AutoColumn style={{ minHeight: 200, justifyContent: 'center', alignItems: 'center' }}> <AutoColumn style={{ minHeight: 200, justifyContent: 'center', alignItems: 'center' }}>
<ThemedText.Body>{message}</ThemedText.Body> <ThemedText.DeprecatedBody>{message}</ThemedText.DeprecatedBody>
</AutoColumn> </AutoColumn>
) )
} }
...@@ -117,34 +117,34 @@ export default function MigrateV2() { ...@@ -117,34 +117,34 @@ export default function MigrateV2() {
<AutoColumn gap="16px"> <AutoColumn gap="16px">
<AutoRow style={{ alignItems: 'center', justifyContent: 'space-between' }} gap="8px"> <AutoRow style={{ alignItems: 'center', justifyContent: 'space-between' }} gap="8px">
<BackArrow to="/pool/v2" /> <BackArrow to="/pool/v2" />
<ThemedText.MediumHeader> <ThemedText.DeprecatedMediumHeader>
<Trans>Migrate V2 Liquidity</Trans> <Trans>Migrate V2 Liquidity</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<div> <div>
<QuestionHelper text={<Trans>Migrate your liquidity tokens from Uniswap V2 to Uniswap V3.</Trans>} /> <QuestionHelper text={<Trans>Migrate your liquidity tokens from Uniswap V2 to Uniswap V3.</Trans>} />
</div> </div>
</AutoRow> </AutoRow>
<ThemedText.Body style={{ marginBottom: 8, fontWeight: 400 }}> <ThemedText.DeprecatedBody style={{ marginBottom: 8, fontWeight: 400 }}>
<Trans> <Trans>
For each pool shown below, click migrate to remove your liquidity from Uniswap V2 and deposit it into For each pool shown below, click migrate to remove your liquidity from Uniswap V2 and deposit it into
Uniswap V3. Uniswap V3.
</Trans> </Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
{!account ? ( {!account ? (
<LightCard padding="40px"> <LightCard padding="40px">
<ThemedText.Body color={theme.deprecated_text3} textAlign="center"> <ThemedText.DeprecatedBody color={theme.deprecated_text3} textAlign="center">
<Trans>Connect to a wallet to view your V2 liquidity.</Trans> <Trans>Connect to a wallet to view your V2 liquidity.</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</LightCard> </LightCard>
) : v2IsLoading ? ( ) : v2IsLoading ? (
<LightCard padding="40px"> <LightCard padding="40px">
<ThemedText.Body color={theme.deprecated_text3} textAlign="center"> <ThemedText.DeprecatedBody color={theme.deprecated_text3} textAlign="center">
<Dots> <Dots>
<Trans>Loading</Trans> <Trans>Loading</Trans>
</Dots> </Dots>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</LightCard> </LightCard>
) : v2Pairs.filter(([, pair]) => !!pair).length > 0 ? ( ) : v2Pairs.filter(([, pair]) => !!pair).length > 0 ? (
<> <>
......
...@@ -69,7 +69,7 @@ const CTA2 = styled(ExternalLink)` ...@@ -69,7 +69,7 @@ const CTA2 = styled(ExternalLink)`
} }
` `
const HeaderText = styled(ThemedText.Label)` const HeaderText = styled(ThemedText.DeprecatedLabel)`
align-items: center; align-items: center;
display: flex; display: flex;
...@@ -102,9 +102,9 @@ export default function CTACards() { ...@@ -102,9 +102,9 @@ export default function CTACards() {
<HeaderText> <HeaderText>
<Trans>Learn about providing liquidity</Trans> <Trans>Learn about providing liquidity</Trans>
</HeaderText> </HeaderText>
<ThemedText.Body fontWeight={400} style={{ alignItems: 'center', display: 'flex' }}> <ThemedText.DeprecatedBody fontWeight={400} style={{ alignItems: 'center', display: 'flex' }}>
<Trans>Check out our v3 LP walkthrough and migration guides.</Trans> <Trans>Check out our v3 LP walkthrough and migration guides.</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</ResponsiveColumn> </ResponsiveColumn>
</CTA1> </CTA1>
<CTA2 data-testid="cta-infolink" href={infoLink + 'pools'}> <CTA2 data-testid="cta-infolink" href={infoLink + 'pools'}>
...@@ -112,9 +112,9 @@ export default function CTACards() { ...@@ -112,9 +112,9 @@ export default function CTACards() {
<HeaderText style={{ alignSelf: 'flex-start' }}> <HeaderText style={{ alignSelf: 'flex-start' }}>
<Trans>Top pools</Trans> <Trans>Top pools</Trans>
</HeaderText> </HeaderText>
<ThemedText.Body fontWeight={400} style={{ alignSelf: 'flex-start' }}> <ThemedText.DeprecatedBody fontWeight={400} style={{ alignSelf: 'flex-start' }}>
<Trans>Explore Uniswap Analytics.</Trans> <Trans>Explore Uniswap Analytics.</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</ResponsiveColumn> </ResponsiveColumn>
</CTA2> </CTA2>
</CTASection> </CTASection>
......
This diff is collapsed.
...@@ -85,7 +85,7 @@ const MoreOptionsButton = styled(ButtonGray)` ...@@ -85,7 +85,7 @@ const MoreOptionsButton = styled(ButtonGray)`
margin-right: 8px; margin-right: 8px;
` `
const MoreOptionsText = styled(ThemedText.Body)` const MoreOptionsText = styled(ThemedText.DeprecatedBody)`
align-items: center; align-items: center;
display: flex; display: flex;
` `
...@@ -159,19 +159,19 @@ function WrongNetworkCard() { ...@@ -159,19 +159,19 @@ function WrongNetworkCard() {
<AutoColumn gap="lg" justify="center"> <AutoColumn gap="lg" justify="center">
<AutoColumn gap="lg" style={{ width: '100%' }}> <AutoColumn gap="lg" style={{ width: '100%' }}>
<TitleRow style={{ marginTop: '1rem' }} padding={'0'}> <TitleRow style={{ marginTop: '1rem' }} padding={'0'}>
<ThemedText.Body fontSize={'20px'}> <ThemedText.DeprecatedBody fontSize={'20px'}>
<Trans>Pools Overview</Trans> <Trans>Pools Overview</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</TitleRow> </TitleRow>
<MainContentWrapper> <MainContentWrapper>
<ErrorContainer> <ErrorContainer>
<ThemedText.Body color={theme.deprecated_text3} textAlign="center"> <ThemedText.DeprecatedBody color={theme.deprecated_text3} textAlign="center">
<NetworkIcon strokeWidth={1.2} /> <NetworkIcon strokeWidth={1.2} />
<div data-testid="pools-unsupported-err"> <div data-testid="pools-unsupported-err">
<Trans>Your connected network is unsupported.</Trans> <Trans>Your connected network is unsupported.</Trans>
</div> </div>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</ErrorContainer> </ErrorContainer>
</MainContentWrapper> </MainContentWrapper>
</AutoColumn> </AutoColumn>
...@@ -257,9 +257,9 @@ export default function Pool() { ...@@ -257,9 +257,9 @@ export default function Pool() {
<AutoColumn gap="lg" justify="center"> <AutoColumn gap="lg" justify="center">
<AutoColumn gap="lg" style={{ width: '100%' }}> <AutoColumn gap="lg" style={{ width: '100%' }}>
<TitleRow style={{ marginTop: '1rem' }} padding={'0'}> <TitleRow style={{ marginTop: '1rem' }} padding={'0'}>
<ThemedText.Body fontSize={'20px'}> <ThemedText.DeprecatedBody fontSize={'20px'}>
<Trans>Pools Overview</Trans> <Trans>Pools Overview</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<ButtonRow> <ButtonRow>
{showV2Features && ( {showV2Features && (
<Menu <Menu
...@@ -292,12 +292,12 @@ export default function Pool() { ...@@ -292,12 +292,12 @@ export default function Pool() {
/> />
) : ( ) : (
<ErrorContainer> <ErrorContainer>
<ThemedText.Body color={theme.deprecated_text3} textAlign="center"> <ThemedText.DeprecatedBody color={theme.deprecated_text3} textAlign="center">
<InboxIcon strokeWidth={1} /> <InboxIcon strokeWidth={1} />
<div> <div>
<Trans>Your active V3 liquidity positions will appear here.</Trans> <Trans>Your active V3 liquidity positions will appear here.</Trans>
</div> </div>
</ThemedText.Body> </ThemedText.DeprecatedBody>
{!showConnectAWallet && closedPositions.length > 0 && ( {!showConnectAWallet && closedPositions.length > 0 && (
<ButtonText <ButtonText
style={{ marginTop: '.5rem' }} style={{ marginTop: '.5rem' }}
......
...@@ -145,26 +145,26 @@ export default function Pool() { ...@@ -145,26 +145,26 @@ export default function Pool() {
<CardSection> <CardSection>
<AutoColumn gap="md"> <AutoColumn gap="md">
<RowBetween> <RowBetween>
<ThemedText.White fontWeight={600}> <ThemedText.DeprecatedWhite fontWeight={600}>
<Trans>Liquidity provider rewards</Trans> <Trans>Liquidity provider rewards</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<ThemedText.White fontSize={14}> <ThemedText.DeprecatedWhite fontSize={14}>
<Trans> <Trans>
Liquidity providers earn a 0.3% fee on all trades proportional to their share of the pool. Fees Liquidity providers earn a 0.3% fee on all trades proportional to their share of the pool. Fees
are added to the pool, accrue in real time and can be claimed by withdrawing your liquidity. are added to the pool, accrue in real time and can be claimed by withdrawing your liquidity.
</Trans> </Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</RowBetween> </RowBetween>
<ExternalLink <ExternalLink
style={{ color: theme.deprecated_white, textDecoration: 'underline' }} style={{ color: theme.deprecated_white, textDecoration: 'underline' }}
target="_blank" target="_blank"
href="https://docs.uniswap.org/protocol/V2/concepts/core-concepts/pools" href="https://docs.uniswap.org/protocol/V2/concepts/core-concepts/pools"
> >
<ThemedText.White fontSize={14}> <ThemedText.DeprecatedWhite fontSize={14}>
<Trans>Read more about providing liquidity</Trans> <Trans>Read more about providing liquidity</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</ExternalLink> </ExternalLink>
</AutoColumn> </AutoColumn>
</CardSection> </CardSection>
...@@ -176,9 +176,9 @@ export default function Pool() { ...@@ -176,9 +176,9 @@ export default function Pool() {
<AutoColumn gap="lg" justify="center"> <AutoColumn gap="lg" justify="center">
<AutoColumn gap="md" style={{ width: '100%' }}> <AutoColumn gap="md" style={{ width: '100%' }}>
<Layer2Prompt> <Layer2Prompt>
<ThemedText.Body color={theme.deprecated_text3} textAlign="center"> <ThemedText.DeprecatedBody color={theme.deprecated_text3} textAlign="center">
<Trans>V2 Pool is not available on Layer 2. Switch to Layer 1 Ethereum.</Trans> <Trans>V2 Pool is not available on Layer 2. Switch to Layer 1 Ethereum.</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</Layer2Prompt> </Layer2Prompt>
</AutoColumn> </AutoColumn>
</AutoColumn> </AutoColumn>
...@@ -187,9 +187,9 @@ export default function Pool() { ...@@ -187,9 +187,9 @@ export default function Pool() {
<AutoColumn gap="md" style={{ width: '100%' }}> <AutoColumn gap="md" style={{ width: '100%' }}>
<TitleRow style={{ marginTop: '1rem' }} padding={'0'}> <TitleRow style={{ marginTop: '1rem' }} padding={'0'}>
<HideSmall> <HideSmall>
<ThemedText.MediumHeader style={{ marginTop: '0.5rem', justifySelf: 'flex-start' }}> <ThemedText.DeprecatedMediumHeader style={{ marginTop: '0.5rem', justifySelf: 'flex-start' }}>
<Trans>Your V2 liquidity</Trans> <Trans>Your V2 liquidity</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
</HideSmall> </HideSmall>
<ButtonRow> <ButtonRow>
<ResponsiveButtonSecondary as={Link} padding="6px 8px" to="/add/v2/ETH"> <ResponsiveButtonSecondary as={Link} padding="6px 8px" to="/add/v2/ETH">
...@@ -210,17 +210,17 @@ export default function Pool() { ...@@ -210,17 +210,17 @@ export default function Pool() {
{!account ? ( {!account ? (
<Card padding="40px"> <Card padding="40px">
<ThemedText.Body color={theme.deprecated_text3} textAlign="center"> <ThemedText.DeprecatedBody color={theme.deprecated_text3} textAlign="center">
<Trans>Connect to a wallet to view your liquidity.</Trans> <Trans>Connect to a wallet to view your liquidity.</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</Card> </Card>
) : v2IsLoading ? ( ) : v2IsLoading ? (
<EmptyProposals> <EmptyProposals>
<ThemedText.Body color={theme.deprecated_text3} textAlign="center"> <ThemedText.DeprecatedBody color={theme.deprecated_text3} textAlign="center">
<Dots> <Dots>
<Trans>Loading</Trans> <Trans>Loading</Trans>
</Dots> </Dots>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</EmptyProposals> </EmptyProposals>
) : allV2PairsWithLiquidity?.length > 0 || stakingPairs?.length > 0 ? ( ) : allV2PairsWithLiquidity?.length > 0 || stakingPairs?.length > 0 ? (
<> <>
...@@ -267,9 +267,9 @@ export default function Pool() { ...@@ -267,9 +267,9 @@ export default function Pool() {
</> </>
) : ( ) : (
<EmptyProposals> <EmptyProposals>
<ThemedText.Body color={theme.deprecated_text3} textAlign="center"> <ThemedText.DeprecatedBody color={theme.deprecated_text3} textAlign="center">
<Trans>No liquidity found.</Trans> <Trans>No liquidity found.</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
</EmptyProposals> </EmptyProposals>
)} )}
</AutoColumn> </AutoColumn>
......
...@@ -104,11 +104,11 @@ export default function PoolFinder() { ...@@ -104,11 +104,11 @@ export default function PoolFinder() {
<AutoColumn style={{ padding: '1rem' }} gap="md"> <AutoColumn style={{ padding: '1rem' }} gap="md">
<BlueCard> <BlueCard>
<AutoColumn gap="10px"> <AutoColumn gap="10px">
<ThemedText.Link fontWeight={400} color={'deprecated_primaryText1'}> <ThemedText.DeprecatedLink fontWeight={400} color={'deprecated_primaryText1'}>
<Trans> <Trans>
<b>Tip:</b> Use this tool to find v2 pools that don&apos;t automatically appear in the interface. <b>Tip:</b> Use this tool to find v2 pools that don&apos;t automatically appear in the interface.
</Trans> </Trans>
</ThemedText.Link> </ThemedText.DeprecatedLink>
</AutoColumn> </AutoColumn>
</BlueCard> </BlueCard>
<ButtonDropdownLight <ButtonDropdownLight
......
...@@ -227,9 +227,14 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -227,9 +227,14 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
</RowBetween> </RowBetween>
{feeValue0?.greaterThan(0) || feeValue1?.greaterThan(0) ? ( {feeValue0?.greaterThan(0) || feeValue1?.greaterThan(0) ? (
<> <>
<ThemedText.Italic fontSize={12} color={theme.deprecated_text2} textAlign="left" padding={'8px 0 0 0'}> <ThemedText.DeprecatedItalic
fontSize={12}
color={theme.deprecated_text2}
textAlign="left"
padding={'8px 0 0 0'}
>
<Trans>You will also collect fees earned from this position.</Trans> <Trans>You will also collect fees earned from this position.</Trans>
</ThemedText.Italic> </ThemedText.DeprecatedItalic>
<RowBetween> <RowBetween>
<Text fontSize={16} fontWeight={500}> <Text fontSize={16} fontWeight={500}>
<Trans>{feeValue0?.currency?.symbol} Fees Earned:</Trans> <Trans>{feeValue0?.currency?.symbol} Fees Earned:</Trans>
...@@ -303,18 +308,18 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -303,18 +308,18 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
size={20} size={20}
margin={true} margin={true}
/> />
<ThemedText.Label <ThemedText.DeprecatedLabel
ml="10px" ml="10px"
fontSize="20px" fontSize="20px"
>{`${feeValue0?.currency?.symbol}/${feeValue1?.currency?.symbol}`}</ThemedText.Label> >{`${feeValue0?.currency?.symbol}/${feeValue1?.currency?.symbol}`}</ThemedText.DeprecatedLabel>
</RowFixed> </RowFixed>
<RangeBadge removed={removed} inRange={!outOfRange} /> <RangeBadge removed={removed} inRange={!outOfRange} />
</RowBetween> </RowBetween>
<LightCard> <LightCard>
<AutoColumn gap="md"> <AutoColumn gap="md">
<ThemedText.Main fontWeight={400}> <ThemedText.DeprecatedMain fontWeight={400}>
<Trans>Amount</Trans> <Trans>Amount</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
<RowBetween> <RowBetween>
<ResponsiveHeaderText> <ResponsiveHeaderText>
<Trans>{percentForSlider}%</Trans> <Trans>{percentForSlider}%</Trans>
...@@ -393,9 +398,9 @@ function Remove({ tokenId }: { tokenId: BigNumber }) { ...@@ -393,9 +398,9 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
{showCollectAsWeth && ( {showCollectAsWeth && (
<RowBetween> <RowBetween>
<ThemedText.Main> <ThemedText.DeprecatedMain>
<Trans>Collect as {nativeWrappedSymbol}</Trans> <Trans>Collect as {nativeWrappedSymbol}</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
<Toggle <Toggle
id="receive-as-weth" id="receive-as-weth"
isActive={receiveWETH} isActive={receiveWETH}
......
...@@ -317,12 +317,17 @@ export default function RemoveLiquidity() { ...@@ -317,12 +317,17 @@ export default function RemoveLiquidity() {
</RowFixed> </RowFixed>
</RowBetween> </RowBetween>
<ThemedText.Italic fontSize={12} color={theme.deprecated_text2} textAlign="left" padding={'12px 0 0 0'}> <ThemedText.DeprecatedItalic
fontSize={12}
color={theme.deprecated_text2}
textAlign="left"
padding={'12px 0 0 0'}
>
<Trans> <Trans>
Output is estimated. If the price changes by more than {allowedSlippage.toSignificant(4)}% your transaction Output is estimated. If the price changes by more than {allowedSlippage.toSignificant(4)}% your transaction
will revert. will revert.
</Trans> </Trans>
</ThemedText.Italic> </ThemedText.DeprecatedItalic>
</AutoColumn> </AutoColumn>
) )
} }
...@@ -451,12 +456,12 @@ export default function RemoveLiquidity() { ...@@ -451,12 +456,12 @@ export default function RemoveLiquidity() {
<AutoColumn gap="md"> <AutoColumn gap="md">
<BlueCard> <BlueCard>
<AutoColumn gap="10px"> <AutoColumn gap="10px">
<ThemedText.Link fontWeight={400} color={'deprecated_primaryText1'}> <ThemedText.DeprecatedLink fontWeight={400} color={'deprecated_primaryText1'}>
<Trans> <Trans>
<b>Tip:</b> Removing pool tokens converts your position back into underlying tokens at the current <b>Tip:</b> Removing pool tokens converts your position back into underlying tokens at the current
rate, proportional to your share of the pool. Accrued fees are included in the amounts you receive. rate, proportional to your share of the pool. Accrued fees are included in the amounts you receive.
</Trans> </Trans>
</ThemedText.Link> </ThemedText.DeprecatedLink>
</AutoColumn> </AutoColumn>
</BlueCard> </BlueCard>
<LightCard> <LightCard>
......
...@@ -529,9 +529,9 @@ export default function Swap() { ...@@ -529,9 +529,9 @@ export default function Swap() {
<div> <div>
{swapIsUnsupported ? ( {swapIsUnsupported ? (
<ButtonPrimary disabled={true}> <ButtonPrimary disabled={true}>
<ThemedText.Main mb="4px"> <ThemedText.DeprecatedMain mb="4px">
<Trans>Unsupported Asset</Trans> <Trans>Unsupported Asset</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</ButtonPrimary> </ButtonPrimary>
) : !account ? ( ) : !account ? (
<TraceEvent <TraceEvent
...@@ -556,9 +556,9 @@ export default function Swap() { ...@@ -556,9 +556,9 @@ export default function Swap() {
</ButtonPrimary> </ButtonPrimary>
) : routeNotFound && userHasSpecifiedInputOutput && !routeIsLoading && !routeIsSyncing ? ( ) : routeNotFound && userHasSpecifiedInputOutput && !routeIsLoading && !routeIsSyncing ? (
<GreyCard style={{ textAlign: 'center' }}> <GreyCard style={{ textAlign: 'center' }}>
<ThemedText.Main mb="4px"> <ThemedText.DeprecatedMain mb="4px">
<Trans>Insufficient liquidity for this trade.</Trans> <Trans>Insufficient liquidity for this trade.</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
</GreyCard> </GreyCard>
) : showApproveFlow ? ( ) : showApproveFlow ? (
<AutoRow style={{ flexWrap: 'nowrap', width: '100%' }}> <AutoRow style={{ flexWrap: 'nowrap', width: '100%' }}>
......
...@@ -88,7 +88,7 @@ const WrapSmall = styled(RowBetween)` ...@@ -88,7 +88,7 @@ const WrapSmall = styled(RowBetween)`
`}; `};
` `
const TextButton = styled(ThemedText.Main)` const TextButton = styled(ThemedText.DeprecatedMain)`
color: ${({ theme }) => theme.deprecated_primary1}; color: ${({ theme }) => theme.deprecated_primary1};
:hover { :hover {
cursor: pointer; cursor: pointer;
...@@ -150,17 +150,17 @@ export default function Landing() { ...@@ -150,17 +150,17 @@ export default function Landing() {
<CardSection> <CardSection>
<AutoColumn gap="md"> <AutoColumn gap="md">
<RowBetween> <RowBetween>
<ThemedText.White fontWeight={600}> <ThemedText.DeprecatedWhite fontWeight={600}>
<Trans>Uniswap Governance</Trans> <Trans>Uniswap Governance</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<ThemedText.White fontSize={14}> <ThemedText.DeprecatedWhite fontSize={14}>
<Trans> <Trans>
UNI tokens represent voting shares in Uniswap governance. You can vote on each proposal yourself UNI tokens represent voting shares in Uniswap governance. You can vote on each proposal yourself
or delegate your votes to a third party. or delegate your votes to a third party.
</Trans> </Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</RowBetween> </RowBetween>
<ExternalLink <ExternalLink
style={{ style={{
...@@ -170,9 +170,9 @@ export default function Landing() { ...@@ -170,9 +170,9 @@ export default function Landing() {
href="https://uniswap.org/blog/uni" href="https://uniswap.org/blog/uni"
target="_blank" target="_blank"
> >
<ThemedText.White fontSize={14}> <ThemedText.DeprecatedWhite fontSize={14}>
<Trans>Read more about Uniswap governance</Trans> <Trans>Read more about Uniswap governance</Trans>
</ThemedText.White> </ThemedText.DeprecatedWhite>
</ExternalLink> </ExternalLink>
</AutoColumn> </AutoColumn>
</CardSection> </CardSection>
...@@ -182,9 +182,9 @@ export default function Landing() { ...@@ -182,9 +182,9 @@ export default function Landing() {
</TopSection> </TopSection>
<TopSection gap="2px"> <TopSection gap="2px">
<WrapSmall> <WrapSmall>
<ThemedText.MediumHeader style={{ margin: '0.5rem 0.5rem 0.5rem 0', flexShrink: 0 }}> <ThemedText.DeprecatedMediumHeader style={{ margin: '0.5rem 0.5rem 0.5rem 0', flexShrink: 0 }}>
<Trans>Proposals</Trans> <Trans>Proposals</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<AutoRow gap="6px" justify="flex-end"> <AutoRow gap="6px" justify="flex-end">
{loadingProposals || loadingAvailableVotes ? <Loader /> : null} {loadingProposals || loadingAvailableVotes ? <Loader /> : null}
{showUnlockVoting ? ( {showUnlockVoting ? (
...@@ -197,20 +197,20 @@ export default function Landing() { ...@@ -197,20 +197,20 @@ export default function Landing() {
<Trans>Unlock Voting</Trans> <Trans>Unlock Voting</Trans>
</ButtonPrimary> </ButtonPrimary>
) : availableVotes && JSBI.notEqual(JSBI.BigInt(0), availableVotes?.quotient) ? ( ) : availableVotes && JSBI.notEqual(JSBI.BigInt(0), availableVotes?.quotient) ? (
<ThemedText.Body fontWeight={500} mr="6px"> <ThemedText.DeprecatedBody fontWeight={500} mr="6px">
<Trans> <Trans>
<FormattedCurrencyAmount currencyAmount={availableVotes} /> Votes <FormattedCurrencyAmount currencyAmount={availableVotes} /> Votes
</Trans> </Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
) : uniBalance && ) : uniBalance &&
userDelegatee && userDelegatee &&
userDelegatee !== ZERO_ADDRESS && userDelegatee !== ZERO_ADDRESS &&
JSBI.notEqual(JSBI.BigInt(0), uniBalance?.quotient) ? ( JSBI.notEqual(JSBI.BigInt(0), uniBalance?.quotient) ? (
<ThemedText.Body fontWeight={500} mr="6px"> <ThemedText.DeprecatedBody fontWeight={500} mr="6px">
<Trans> <Trans>
<FormattedCurrencyAmount currencyAmount={uniBalance} /> Votes <FormattedCurrencyAmount currencyAmount={uniBalance} /> Votes
</Trans> </Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
) : ( ) : (
'' ''
)} )}
...@@ -229,9 +229,9 @@ export default function Landing() { ...@@ -229,9 +229,9 @@ export default function Landing() {
<div /> <div />
{userDelegatee && userDelegatee !== ZERO_ADDRESS ? ( {userDelegatee && userDelegatee !== ZERO_ADDRESS ? (
<RowFixed> <RowFixed>
<ThemedText.Body fontWeight={500} mr="4px"> <ThemedText.DeprecatedBody fontWeight={500} mr="4px">
<Trans>Delegated to:</Trans> <Trans>Delegated to:</Trans>
</ThemedText.Body> </ThemedText.DeprecatedBody>
<AddressButton> <AddressButton>
<StyledExternalLink <StyledExternalLink
href={getExplorerLink(1, userDelegatee, ExplorerDataType.ADDRESS)} href={getExplorerLink(1, userDelegatee, ExplorerDataType.ADDRESS)}
...@@ -255,9 +255,9 @@ export default function Landing() { ...@@ -255,9 +255,9 @@ export default function Landing() {
{allProposals?.length > 0 && ( {allProposals?.length > 0 && (
<AutoColumn gap="md"> <AutoColumn gap="md">
<RowBetween> <RowBetween>
<ThemedText.Main> <ThemedText.DeprecatedMain>
<Trans>Show Cancelled</Trans> <Trans>Show Cancelled</Trans>
</ThemedText.Main> </ThemedText.DeprecatedMain>
<Toggle <Toggle
isActive={!hideCancelled} isActive={!hideCancelled}
toggle={() => setHideCancelled((hideCancelled) => !hideCancelled)} toggle={() => setHideCancelled((hideCancelled) => !hideCancelled)}
...@@ -283,9 +283,9 @@ export default function Landing() { ...@@ -283,9 +283,9 @@ export default function Landing() {
})} })}
</TopSection> </TopSection>
<ThemedText.SubHeader color="text3"> <ThemedText.DeprecatedSubHeader color="text3">
<Trans>A minimum threshold of 0.25% of the total UNI supply is required to submit proposals</Trans> <Trans>A minimum threshold of 0.25% of the total UNI supply is required to submit proposals</Trans>
</ThemedText.SubHeader> </ThemedText.DeprecatedSubHeader>
</PageWrapper> </PageWrapper>
</Trace> </Trace>
<SwitchLocaleLink /> <SwitchLocaleLink />
......
...@@ -284,27 +284,29 @@ export default function VotePage() { ...@@ -284,27 +284,29 @@ export default function VotePage() {
{proposalData && <ProposalStatus status={proposalData.status} />} {proposalData && <ProposalStatus status={proposalData.status} />}
</RowBetween> </RowBetween>
<AutoColumn gap="10px" style={{ width: '100%' }}> <AutoColumn gap="10px" style={{ width: '100%' }}>
<ThemedText.LargeHeader style={{ marginBottom: '.5rem' }}>{proposalData?.title}</ThemedText.LargeHeader> <ThemedText.DeprecatedLargeHeader style={{ marginBottom: '.5rem' }}>
{proposalData?.title}
</ThemedText.DeprecatedLargeHeader>
<RowBetween> <RowBetween>
<ThemedText.Main> <ThemedText.DeprecatedMain>
{startDate && startDate > now ? ( {startDate && startDate > now ? (
<Trans>Voting starts approximately {startDate.toLocaleString(locale, dateFormat)}</Trans> <Trans>Voting starts approximately {startDate.toLocaleString(locale, dateFormat)}</Trans>
) : null} ) : null}
</ThemedText.Main> </ThemedText.DeprecatedMain>
</RowBetween> </RowBetween>
<RowBetween> <RowBetween>
<ThemedText.Main> <ThemedText.DeprecatedMain>
{endDate && {endDate &&
(endDate < now ? ( (endDate < now ? (
<Trans>Voting ended {endDate.toLocaleString(locale, dateFormat)}</Trans> <Trans>Voting ended {endDate.toLocaleString(locale, dateFormat)}</Trans>
) : ( ) : (
<Trans>Voting ends approximately {endDate.toLocaleString(locale, dateFormat)}</Trans> <Trans>Voting ends approximately {endDate.toLocaleString(locale, dateFormat)}</Trans>
))} ))}
</ThemedText.Main> </ThemedText.DeprecatedMain>
</RowBetween> </RowBetween>
{proposalData && proposalData.status === ProposalState.ACTIVE && !showVotingButtons && ( {proposalData && proposalData.status === ProposalState.ACTIVE && !showVotingButtons && (
<GreyCard> <GreyCard>
<ThemedText.Black> <ThemedText.DeprecatedBlack>
<Trans> <Trans>
Only UNI votes that were self delegated or delegated to another address before block{' '} Only UNI votes that were self delegated or delegated to another address before block{' '}
{proposalData.startBlock} are eligible for voting. {proposalData.startBlock} are eligible for voting.
...@@ -317,7 +319,7 @@ export default function VotePage() { ...@@ -317,7 +319,7 @@ export default function VotePage() {
</Trans> </Trans>
</span> </span>
)} )}
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</GreyCard> </GreyCard>
)} )}
</AutoColumn> </AutoColumn>
...@@ -362,9 +364,9 @@ export default function VotePage() { ...@@ -362,9 +364,9 @@ export default function VotePage() {
<> <>
{eta && ( {eta && (
<RowBetween> <RowBetween>
<ThemedText.Black> <ThemedText.DeprecatedBlack>
<Trans>This proposal may be executed after {eta.toLocaleString(locale, dateFormat)}.</Trans> <Trans>This proposal may be executed after {eta.toLocaleString(locale, dateFormat)}.</Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
</RowBetween> </RowBetween>
)} )}
<RowFixed style={{ width: '100%', gap: '12px' }}> <RowFixed style={{ width: '100%', gap: '12px' }}>
...@@ -387,18 +389,18 @@ export default function VotePage() { ...@@ -387,18 +389,18 @@ export default function VotePage() {
<CardSection> <CardSection>
<AutoColumn gap="md"> <AutoColumn gap="md">
<WrapSmall> <WrapSmall>
<ThemedText.Black fontWeight={600}> <ThemedText.DeprecatedBlack fontWeight={600}>
<Trans>For</Trans> <Trans>For</Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
{proposalData && ( {proposalData && (
<ThemedText.Black fontWeight={600}> <ThemedText.DeprecatedBlack fontWeight={600}>
{proposalData.forCount.toFixed(0, { groupSeparator: ',' })} {proposalData.forCount.toFixed(0, { groupSeparator: ',' })}
{quorumAmount && ( {quorumAmount && (
<span style={{ fontWeight: 400 }}>{` / ${quorumAmount.toExact({ <span style={{ fontWeight: 400 }}>{` / ${quorumAmount.toExact({
groupSeparator: ',', groupSeparator: ',',
})}`}</span> })}`}</span>
)} )}
</ThemedText.Black> </ThemedText.DeprecatedBlack>
)} )}
</WrapSmall> </WrapSmall>
</AutoColumn> </AutoColumn>
...@@ -416,13 +418,13 @@ export default function VotePage() { ...@@ -416,13 +418,13 @@ export default function VotePage() {
<CardSection> <CardSection>
<AutoColumn gap="md"> <AutoColumn gap="md">
<WrapSmall> <WrapSmall>
<ThemedText.Black fontWeight={600}> <ThemedText.DeprecatedBlack fontWeight={600}>
<Trans>Against</Trans> <Trans>Against</Trans>
</ThemedText.Black> </ThemedText.DeprecatedBlack>
{proposalData && ( {proposalData && (
<ThemedText.Black fontWeight={600}> <ThemedText.DeprecatedBlack fontWeight={600}>
{proposalData.againstCount.toFixed(0, { groupSeparator: ',' })} {proposalData.againstCount.toFixed(0, { groupSeparator: ',' })}
</ThemedText.Black> </ThemedText.DeprecatedBlack>
)} )}
</WrapSmall> </WrapSmall>
</AutoColumn> </AutoColumn>
...@@ -438,9 +440,9 @@ export default function VotePage() { ...@@ -438,9 +440,9 @@ export default function VotePage() {
</StyledDataCard> </StyledDataCard>
</CardWrapper> </CardWrapper>
<AutoColumn gap="md"> <AutoColumn gap="md">
<ThemedText.MediumHeader fontWeight={600}> <ThemedText.DeprecatedMediumHeader fontWeight={600}>
<Trans>Details</Trans> <Trans>Details</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
{proposalData?.details?.map((d, i) => { {proposalData?.details?.map((d, i) => {
return ( return (
<DetailText key={i}> <DetailText key={i}>
...@@ -459,17 +461,17 @@ export default function VotePage() { ...@@ -459,17 +461,17 @@ export default function VotePage() {
})} })}
</AutoColumn> </AutoColumn>
<AutoColumn gap="md"> <AutoColumn gap="md">
<ThemedText.MediumHeader fontWeight={600}> <ThemedText.DeprecatedMediumHeader fontWeight={600}>
<Trans>Description</Trans> <Trans>Description</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<MarkDownWrapper> <MarkDownWrapper>
<ReactMarkdown source={proposalData?.description} /> <ReactMarkdown source={proposalData?.description} />
</MarkDownWrapper> </MarkDownWrapper>
</AutoColumn> </AutoColumn>
<AutoColumn gap="md"> <AutoColumn gap="md">
<ThemedText.MediumHeader fontWeight={600}> <ThemedText.DeprecatedMediumHeader fontWeight={600}>
<Trans>Proposer</Trans> <Trans>Proposer</Trans>
</ThemedText.MediumHeader> </ThemedText.DeprecatedMediumHeader>
<ProposerAddressLink <ProposerAddressLink
href={ href={
proposalData?.proposer && chainId proposalData?.proposer && chainId
......
...@@ -210,52 +210,52 @@ const TextWrapper = styled(Text)<{ color: keyof Colors }>` ...@@ -210,52 +210,52 @@ const TextWrapper = styled(Text)<{ color: keyof Colors }>`
* Preset styles of the Rebass Text component * Preset styles of the Rebass Text component
*/ */
export const ThemedText = { export const ThemedText = {
Main(props: TextProps) { DeprecatedMain(props: TextProps) {
return <TextWrapper fontWeight={500} color={'deprecated_text2'} {...props} /> return <TextWrapper fontWeight={500} color={'deprecated_text2'} {...props} />
}, },
Link(props: TextProps) { DeprecatedLink(props: TextProps) {
return <TextWrapper fontWeight={500} color={'deprecated_primary1'} {...props} /> return <TextWrapper fontWeight={500} color={'deprecated_primary1'} {...props} />
}, },
Label(props: TextProps) { DeprecatedLabel(props: TextProps) {
return <TextWrapper fontWeight={600} color={'deprecated_text1'} {...props} /> return <TextWrapper fontWeight={600} color={'deprecated_text1'} {...props} />
}, },
Black(props: TextProps) { DeprecatedBlack(props: TextProps) {
return <TextWrapper fontWeight={500} color={'deprecated_text1'} {...props} /> return <TextWrapper fontWeight={500} color={'deprecated_text1'} {...props} />
}, },
White(props: TextProps) { DeprecatedWhite(props: TextProps) {
return <TextWrapper fontWeight={500} color={'deprecated_white'} {...props} /> return <TextWrapper fontWeight={500} color={'deprecated_white'} {...props} />
}, },
Body(props: TextProps) { DeprecatedBody(props: TextProps) {
return <TextWrapper fontWeight={400} fontSize={16} color={'deprecated_text1'} {...props} /> return <TextWrapper fontWeight={400} fontSize={16} color={'deprecated_text1'} {...props} />
}, },
LargeHeader(props: TextProps) { DeprecatedLargeHeader(props: TextProps) {
return <TextWrapper fontWeight={600} fontSize={24} {...props} /> return <TextWrapper fontWeight={600} fontSize={24} {...props} />
}, },
MediumHeader(props: TextProps) { DeprecatedMediumHeader(props: TextProps) {
return <TextWrapper fontWeight={500} fontSize={20} {...props} /> return <TextWrapper fontWeight={500} fontSize={20} {...props} />
}, },
SubHeader(props: TextProps) { DeprecatedSubHeader(props: TextProps) {
return <TextWrapper fontWeight={400} fontSize={14} {...props} /> return <TextWrapper fontWeight={400} fontSize={14} {...props} />
}, },
Small(props: TextProps) { DeprecatedSmall(props: TextProps) {
return <TextWrapper fontWeight={500} fontSize={11} {...props} /> return <TextWrapper fontWeight={500} fontSize={11} {...props} />
}, },
Blue(props: TextProps) { DeprecatedBlue(props: TextProps) {
return <TextWrapper fontWeight={500} color={'deprecated_blue1'} {...props} /> return <TextWrapper fontWeight={500} color={'deprecated_blue1'} {...props} />
}, },
Yellow(props: TextProps) { DeprecatedYellow(props: TextProps) {
return <TextWrapper fontWeight={500} color={'deprecated_yellow3'} {...props} /> return <TextWrapper fontWeight={500} color={'deprecated_yellow3'} {...props} />
}, },
DarkGray(props: TextProps) { DeprecatedDarkGray(props: TextProps) {
return <TextWrapper fontWeight={500} color={'deprecated_text3'} {...props} /> return <TextWrapper fontWeight={500} color={'deprecated_text3'} {...props} />
}, },
Gray(props: TextProps) { DeprecatedGray(props: TextProps) {
return <TextWrapper fontWeight={500} color={'deprecated_bg3'} {...props} /> return <TextWrapper fontWeight={500} color={'deprecated_bg3'} {...props} />
}, },
Italic(props: TextProps) { DeprecatedItalic(props: TextProps) {
return <TextWrapper fontWeight={500} fontSize={12} fontStyle={'italic'} color={'deprecated_text2'} {...props} /> return <TextWrapper fontWeight={500} fontSize={12} fontStyle={'italic'} color={'deprecated_text2'} {...props} />
}, },
Error({ error, ...props }: { error: boolean } & TextProps) { DeprecatedError({ error, ...props }: { error: boolean } & TextProps) {
return <TextWrapper fontWeight={500} color={error ? 'deprecated_red1' : 'deprecated_text2'} {...props} /> return <TextWrapper fontWeight={500} color={error ? 'deprecated_red1' : 'deprecated_text2'} {...props} />
}, },
} }
......
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