fix: use sentence case for text (#7375)
This commit is contained in:
parent
731ff4a485
commit
71212f7e32
@ -52,7 +52,7 @@ describe('Token details', () => {
|
|||||||
cy.visit('/tokens/ethereum/0xa71d0588EAf47f12B13cF8eC750430d21DF04974')
|
cy.visit('/tokens/ethereum/0xa71d0588EAf47f12B13cF8eC750430d21DF04974')
|
||||||
|
|
||||||
// Should have missing price chart when price unavailable (expected for this token)
|
// Should have missing price chart when price unavailable (expected for this token)
|
||||||
if (cy.get('[data-cy="chart-header"]').contains('Price Unavailable')) {
|
if (cy.get('[data-cy="chart-header"]').contains('Price unavailable')) {
|
||||||
cy.get('[data-cy="missing-chart"]').should('exist')
|
cy.get('[data-cy="missing-chart"]').should('exist')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ describe('disconnect wallet', () => {
|
|||||||
// Verify wallet has disconnected
|
// Verify wallet has disconnected
|
||||||
cy.contains('Connect a wallet').should('exist')
|
cy.contains('Connect a wallet').should('exist')
|
||||||
cy.get(getTestSelector('navbar-connect-wallet')).contains('Connect')
|
cy.get(getTestSelector('navbar-connect-wallet')).contains('Connect')
|
||||||
cy.contains('Connect Wallet')
|
cy.contains('Connect wallet')
|
||||||
|
|
||||||
// Verify swap input is cleared
|
// Verify swap input is cleared
|
||||||
cy.get('#swap-currency-input .token-amount-input').should('have.value', '1')
|
cy.get('#swap-currency-input .token-amount-input').should('have.value', '1')
|
||||||
|
@ -55,7 +55,7 @@ export default function RangeBadge({ removed, inRange }: { removed?: boolean; in
|
|||||||
>
|
>
|
||||||
<LabelText color={theme.success}>
|
<LabelText color={theme.success}>
|
||||||
<BadgeText>
|
<BadgeText>
|
||||||
<Trans>In Range</Trans>
|
<Trans>In range</Trans>
|
||||||
</BadgeText>
|
</BadgeText>
|
||||||
<ActiveDot />
|
<ActiveDot />
|
||||||
</LabelText>
|
</LabelText>
|
||||||
|
@ -366,7 +366,7 @@ exports[`PriceChart renders correctly with empty price array 1`] = `
|
|||||||
<div
|
<div
|
||||||
class="c1 css-slqfkh"
|
class="c1 css-slqfkh"
|
||||||
>
|
>
|
||||||
Price Unavailable
|
Price unavailable
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="c1 css-142zc9n"
|
class="c1 css-142zc9n"
|
||||||
@ -799,7 +799,7 @@ exports[`PriceChart renders correctly with undefined prices 1`] = `
|
|||||||
<div
|
<div
|
||||||
class="c1 css-slqfkh"
|
class="c1 css-slqfkh"
|
||||||
>
|
>
|
||||||
Price Unavailable
|
Price unavailable
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="c1 css-142zc9n"
|
class="c1 css-142zc9n"
|
||||||
|
@ -42,7 +42,7 @@ describe('PriceChart', () => {
|
|||||||
it('renders correctly with empty price array', () => {
|
it('renders correctly with empty price array', () => {
|
||||||
const { asFragment } = render(<PriceChart prices={[]} width={780} height={392} timePeriod={TimePeriod.HOUR} />)
|
const { asFragment } = render(<PriceChart prices={[]} width={780} height={392} timePeriod={TimePeriod.HOUR} />)
|
||||||
expect(asFragment()).toMatchSnapshot()
|
expect(asFragment()).toMatchSnapshot()
|
||||||
expect(asFragment().textContent).toContain('Price Unavailable')
|
expect(asFragment().textContent).toContain('Price unavailable')
|
||||||
expect(asFragment().textContent).toContain('Missing price data due to recently low trading volume on Uniswap v3')
|
expect(asFragment().textContent).toContain('Missing price data due to recently low trading volume on Uniswap v3')
|
||||||
})
|
})
|
||||||
it('renders correctly with undefined prices', () => {
|
it('renders correctly with undefined prices', () => {
|
||||||
@ -50,7 +50,7 @@ describe('PriceChart', () => {
|
|||||||
<PriceChart prices={undefined} width={780} height={392} timePeriod={TimePeriod.HOUR} />
|
<PriceChart prices={undefined} width={780} height={392} timePeriod={TimePeriod.HOUR} />
|
||||||
)
|
)
|
||||||
expect(asFragment()).toMatchSnapshot()
|
expect(asFragment()).toMatchSnapshot()
|
||||||
expect(asFragment().textContent).toContain('Price Unavailable')
|
expect(asFragment().textContent).toContain('Price unavailable')
|
||||||
expect(asFragment().textContent).toContain('Missing chart data')
|
expect(asFragment().textContent).toContain('Missing chart data')
|
||||||
})
|
})
|
||||||
it('renders stale UI', () => {
|
it('renders stale UI', () => {
|
||||||
|
@ -248,7 +248,7 @@ function ChartBody({ chart, timePeriod }: { chart: ChartModel; timePeriod: TimeP
|
|||||||
const CHART_ERROR_MESSAGES: Record<ChartErrorType, ReactNode> = {
|
const CHART_ERROR_MESSAGES: Record<ChartErrorType, ReactNode> = {
|
||||||
[ChartErrorType.NO_DATA_AVAILABLE]: <Trans>Missing chart data</Trans>,
|
[ChartErrorType.NO_DATA_AVAILABLE]: <Trans>Missing chart data</Trans>,
|
||||||
[ChartErrorType.NO_RECENT_VOLUME]: <Trans>Missing price data due to recently low trading volume on Uniswap v3</Trans>,
|
[ChartErrorType.NO_RECENT_VOLUME]: <Trans>Missing price data due to recently low trading volume on Uniswap v3</Trans>,
|
||||||
[ChartErrorType.INVALID_CHART]: <Trans>Invalid Chart</Trans>,
|
[ChartErrorType.INVALID_CHART]: <Trans>Invalid chart</Trans>,
|
||||||
}
|
}
|
||||||
|
|
||||||
function MissingPriceChart({ chart }: { chart: ErroredChartModel }) {
|
function MissingPriceChart({ chart }: { chart: ErroredChartModel }) {
|
||||||
@ -259,7 +259,7 @@ function MissingPriceChart({ chart }: { chart: ErroredChartModel }) {
|
|||||||
<>
|
<>
|
||||||
<ChartHeaderWrapper data-cy="chart-header">
|
<ChartHeaderWrapper data-cy="chart-header">
|
||||||
<ThemedText.HeadlineLarge fontSize={24} color="neutral3">
|
<ThemedText.HeadlineLarge fontSize={24} color="neutral3">
|
||||||
Price Unavailable
|
Price unavailable
|
||||||
</ThemedText.HeadlineLarge>
|
</ThemedText.HeadlineLarge>
|
||||||
<ThemedText.BodySmall color="neutral3">{CHART_ERROR_MESSAGES[chart.error]}</ThemedText.BodySmall>
|
<ThemedText.BodySmall color="neutral3">{CHART_ERROR_MESSAGES[chart.error]}</ThemedText.BodySmall>
|
||||||
</ChartHeaderWrapper>
|
</ChartHeaderWrapper>
|
||||||
|
@ -25,7 +25,7 @@ export default function ConnectedAccountBlocked(props: ConnectedAccountBlockedPr
|
|||||||
<ContentWrapper>
|
<ContentWrapper>
|
||||||
<BlockedIcon size="22px" />
|
<BlockedIcon size="22px" />
|
||||||
<ThemedText.DeprecatedLargeHeader lineHeight={2} marginBottom={1} marginTop={1}>
|
<ThemedText.DeprecatedLargeHeader lineHeight={2} marginBottom={1} marginTop={1}>
|
||||||
<Trans>Blocked Address</Trans>
|
<Trans>Blocked address</Trans>
|
||||||
</ThemedText.DeprecatedLargeHeader>
|
</ThemedText.DeprecatedLargeHeader>
|
||||||
<ThemedText.DeprecatedDarkGray fontSize={12} marginBottom={12}>
|
<ThemedText.DeprecatedDarkGray fontSize={12} marginBottom={12}>
|
||||||
{props.account}
|
{props.account}
|
||||||
|
@ -133,10 +133,10 @@ export default function FiatOnrampModal() {
|
|||||||
{error ? (
|
{error ? (
|
||||||
<>
|
<>
|
||||||
<ThemedText.MediumHeader>
|
<ThemedText.MediumHeader>
|
||||||
<Trans>Moonpay Fiat On-ramp iframe</Trans>
|
<Trans>MoonPay fiat on-ramp iframe</Trans>
|
||||||
</ThemedText.MediumHeader>
|
</ThemedText.MediumHeader>
|
||||||
<ErrorText>
|
<ErrorText>
|
||||||
<Trans>something went wrong!</Trans>
|
<Trans>Something went wrong!</Trans>
|
||||||
<br />
|
<br />
|
||||||
{error}
|
{error}
|
||||||
</ErrorText>
|
</ErrorText>
|
||||||
|
@ -284,7 +284,7 @@ function SearchBarDropdownContents({
|
|||||||
suggestion_type: NavBarSearchTypes.COLLECTION_SUGGESTION,
|
suggestion_type: NavBarSearchTypes.COLLECTION_SUGGESTION,
|
||||||
...eventProperties,
|
...eventProperties,
|
||||||
}}
|
}}
|
||||||
header={<Trans>NFT Collections</Trans>}
|
header={<Trans>NFT collections</Trans>}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Box className={styles.notFoundContainer}>No NFT collections found.</Box>
|
<Box className={styles.notFoundContainer}>No NFT collections found.</Box>
|
||||||
|
@ -51,7 +51,7 @@ export function FindPoolTabs({ origin }: { origin: string }) {
|
|||||||
<StyledArrowLeft />
|
<StyledArrowLeft />
|
||||||
</Link>
|
</Link>
|
||||||
<FindPoolTabsText>
|
<FindPoolTabsText>
|
||||||
<Trans>Import V2 Pool</Trans>
|
<Trans>Import V2 pool</Trans>
|
||||||
</FindPoolTabsText>
|
</FindPoolTabsText>
|
||||||
</RowBetween>
|
</RowBetween>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
@ -108,9 +108,9 @@ export function AddRemoveTabs({
|
|||||||
{creating ? (
|
{creating ? (
|
||||||
<Trans>Create a pair</Trans>
|
<Trans>Create a pair</Trans>
|
||||||
) : adding ? (
|
) : adding ? (
|
||||||
<Trans>Add Liquidity</Trans>
|
<Trans>Add liquidity</Trans>
|
||||||
) : (
|
) : (
|
||||||
<Trans>Remove Liquidity</Trans>
|
<Trans>Remove liquidity</Trans>
|
||||||
)}
|
)}
|
||||||
</AddRemoveTitleText>
|
</AddRemoveTitleText>
|
||||||
{children && <Box style={{ marginRight: '.5rem' }}>{children}</Box>}
|
{children && <Box style={{ marginRight: '.5rem' }}>{children}</Box>}
|
||||||
|
@ -59,7 +59,7 @@ export function ChainConnectivityWarning() {
|
|||||||
<TitleRow>
|
<TitleRow>
|
||||||
<CautionTriangle />
|
<CautionTriangle />
|
||||||
<TitleText>
|
<TitleText>
|
||||||
<Trans>Network Warning</Trans>
|
<Trans>Network warning</Trans>
|
||||||
</TitleText>
|
</TitleText>
|
||||||
</TitleRow>
|
</TitleRow>
|
||||||
<BodyRow>
|
<BodyRow>
|
||||||
|
@ -346,7 +346,7 @@ export default function FullPositionCard({ pair, border, stakedBalance }: Positi
|
|||||||
to={`/uni/${currencyId(currency0)}/${currencyId(currency1)}`}
|
to={`/uni/${currencyId(currency0)}/${currencyId(currency1)}`}
|
||||||
width="100%"
|
width="100%"
|
||||||
>
|
>
|
||||||
<Trans>Manage Liquidity in Rewards Pool</Trans>
|
<Trans>Manage liquidity in rewards pool</Trans>
|
||||||
</ButtonPrimary>
|
</ButtonPrimary>
|
||||||
)}
|
)}
|
||||||
</AutoColumn>
|
</AutoColumn>
|
||||||
|
@ -101,7 +101,7 @@ export const PositionPreview = ({
|
|||||||
<Break />
|
<Break />
|
||||||
<RowBetween>
|
<RowBetween>
|
||||||
<ThemedText.DeprecatedLabel>
|
<ThemedText.DeprecatedLabel>
|
||||||
<Trans>Fee Tier</Trans>
|
<Trans>Fee tier</Trans>
|
||||||
</ThemedText.DeprecatedLabel>
|
</ThemedText.DeprecatedLabel>
|
||||||
<ThemedText.DeprecatedLabel>
|
<ThemedText.DeprecatedLabel>
|
||||||
<Trans>{position?.pool?.fee / 10000}%</Trans>
|
<Trans>{position?.pool?.fee / 10000}%</Trans>
|
||||||
@ -124,7 +124,7 @@ export const PositionPreview = ({
|
|||||||
<LightCard width="48%" padding="8px">
|
<LightCard width="48%" padding="8px">
|
||||||
<AutoColumn gap="4px" justify="center">
|
<AutoColumn gap="4px" justify="center">
|
||||||
<ThemedText.DeprecatedMain fontSize="12px">
|
<ThemedText.DeprecatedMain fontSize="12px">
|
||||||
<Trans>Min Price</Trans>
|
<Trans>Min price</Trans>
|
||||||
</ThemedText.DeprecatedMain>
|
</ThemedText.DeprecatedMain>
|
||||||
<ThemedText.DeprecatedMediumHeader textAlign="center">
|
<ThemedText.DeprecatedMediumHeader textAlign="center">
|
||||||
{formatTickPrice({
|
{formatTickPrice({
|
||||||
@ -147,7 +147,7 @@ export const PositionPreview = ({
|
|||||||
<LightCard width="48%" padding="8px">
|
<LightCard width="48%" padding="8px">
|
||||||
<AutoColumn gap="4px" justify="center">
|
<AutoColumn gap="4px" justify="center">
|
||||||
<ThemedText.DeprecatedMain fontSize="12px">
|
<ThemedText.DeprecatedMain fontSize="12px">
|
||||||
<Trans>Max Price</Trans>
|
<Trans>Max price</Trans>
|
||||||
</ThemedText.DeprecatedMain>
|
</ThemedText.DeprecatedMain>
|
||||||
<ThemedText.DeprecatedMediumHeader textAlign="center">
|
<ThemedText.DeprecatedMediumHeader textAlign="center">
|
||||||
{formatTickPrice({
|
{formatTickPrice({
|
||||||
|
@ -21,7 +21,7 @@ export default function PresetsButtons({ onSetFullRange }: PresetsButtonsProps)
|
|||||||
<AutoRow gap="4px" width="auto">
|
<AutoRow gap="4px" width="auto">
|
||||||
<Button data-testid="set-full-range" onClick={onSetFullRange}>
|
<Button data-testid="set-full-range" onClick={onSetFullRange}>
|
||||||
<ThemedText.DeprecatedBody fontSize={12}>
|
<ThemedText.DeprecatedBody fontSize={12}>
|
||||||
<Trans>Full Range</Trans>
|
<Trans>Full range</Trans>
|
||||||
</ThemedText.DeprecatedBody>
|
</ThemedText.DeprecatedBody>
|
||||||
</Button>
|
</Button>
|
||||||
</AutoRow>
|
</AutoRow>
|
||||||
|
@ -256,7 +256,7 @@ function L2Content({
|
|||||||
{!hash ? (
|
{!hash ? (
|
||||||
<Trans>Confirm transaction in wallet</Trans>
|
<Trans>Confirm transaction in wallet</Trans>
|
||||||
) : !confirmed ? (
|
) : !confirmed ? (
|
||||||
<Trans>Transaction Submitted</Trans>
|
<Trans>Transaction submitted</Trans>
|
||||||
) : transactionSuccess ? (
|
) : transactionSuccess ? (
|
||||||
<Trans>Success</Trans>
|
<Trans>Success</Trans>
|
||||||
) : (
|
) : (
|
||||||
|
@ -43,7 +43,7 @@ export default function ConnectionErrorView() {
|
|||||||
</Trans>
|
</Trans>
|
||||||
</ThemedText.BodyPrimary>
|
</ThemedText.BodyPrimary>
|
||||||
<ButtonPrimary $borderRadius="16px" onClick={retry}>
|
<ButtonPrimary $borderRadius="16px" onClick={retry}>
|
||||||
<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 onClick={cancelActivation} marginBottom={12}>
|
<ThemedText.Link onClick={cancelActivation} marginBottom={12}>
|
||||||
|
@ -26,7 +26,7 @@ export default function PrivacyPolicyNotice() {
|
|||||||
</StyledLink>
|
</StyledLink>
|
||||||
<LastUpdatedText>
|
<LastUpdatedText>
|
||||||
{' ('}
|
{' ('}
|
||||||
<Trans>Last Updated</Trans>
|
<Trans>Last updated</Trans>
|
||||||
{` ${LAST_UPDATED_DATE})`}
|
{` ${LAST_UPDATED_DATE})`}
|
||||||
</LastUpdatedText>
|
</LastUpdatedText>
|
||||||
</ThemedText.BodySmall>
|
</ThemedText.BodySmall>
|
||||||
|
@ -104,7 +104,7 @@ export default function AddressClaimModal({ isOpen, onDismiss }: { isOpen: boole
|
|||||||
<CardSection gap="md">
|
<CardSection gap="md">
|
||||||
<RowBetween>
|
<RowBetween>
|
||||||
<ThemedText.DeprecatedWhite fontWeight={535}>
|
<ThemedText.DeprecatedWhite fontWeight={535}>
|
||||||
<Trans>Claim UNI Token</Trans>
|
<Trans>Claim UNI token</Trans>
|
||||||
</ThemedText.DeprecatedWhite>
|
</ThemedText.DeprecatedWhite>
|
||||||
<CloseIcon onClick={wrappedOnDismiss} style={{ zIndex: 99 }} stroke="white" />
|
<CloseIcon onClick={wrappedOnDismiss} style={{ zIndex: 99 }} stroke="white" />
|
||||||
</RowBetween>
|
</RowBetween>
|
||||||
|
@ -29,7 +29,7 @@ describe('UnsupportedCurrencyFooter.tsx with unsupported tokens', () => {
|
|||||||
it('works as expected when one unsupported token exists', async () => {
|
it('works as expected when one unsupported token exists', async () => {
|
||||||
const rendered = render(<UnsupportedCurrencyFooter show={true} currencies={[unsupportedToken]} />)
|
const rendered = render(<UnsupportedCurrencyFooter show={true} currencies={[unsupportedToken]} />)
|
||||||
await act(() => userEvent.click(screen.getByTestId('read-more-button')))
|
await act(() => userEvent.click(screen.getByTestId('read-more-button')))
|
||||||
expect(screen.getByText('Unsupported Assets')).toBeInTheDocument()
|
expect(screen.getByText('Unsupported assets')).toBeInTheDocument()
|
||||||
expect(
|
expect(
|
||||||
screen.getByText((content) => content.startsWith('Some assets are not available through this interface'))
|
screen.getByText((content) => content.startsWith('Some assets are not available through this interface'))
|
||||||
).toBeInTheDocument()
|
).toBeInTheDocument()
|
||||||
@ -58,14 +58,14 @@ describe('UnsupportedCurrencyFooter.tsx with no unsupported tokens', () => {
|
|||||||
it('works as expected when no unsupported tokens exist', async () => {
|
it('works as expected when no unsupported tokens exist', async () => {
|
||||||
const rendered = render(<UnsupportedCurrencyFooter show={true} currencies={[unsupportedToken]} />)
|
const rendered = render(<UnsupportedCurrencyFooter show={true} currencies={[unsupportedToken]} />)
|
||||||
await act(() => userEvent.click(screen.getByTestId('read-more-button')))
|
await act(() => userEvent.click(screen.getByTestId('read-more-button')))
|
||||||
expect(screen.getByText('Unsupported Assets')).toBeInTheDocument()
|
expect(screen.getByText('Unsupported assets')).toBeInTheDocument()
|
||||||
expect(
|
expect(
|
||||||
screen.getByText((content) => content.startsWith('Some assets are not available through this interface'))
|
screen.getByText((content) => content.startsWith('Some assets are not available through this interface'))
|
||||||
).toBeInTheDocument()
|
).toBeInTheDocument()
|
||||||
expect(rendered.queryByTestId('unsupported-token-card')).toBeNull()
|
expect(rendered.queryByTestId('unsupported-token-card')).toBeNull()
|
||||||
await act(() => userEvent.click(screen.getByTestId('close-icon')))
|
await act(() => userEvent.click(screen.getByTestId('close-icon')))
|
||||||
await waitForElementToBeRemoved(screen.getByText('Unsupported Assets'))
|
await waitForElementToBeRemoved(screen.getByText('Unsupported assets'))
|
||||||
expect(rendered.queryByText('Unsupported Assets')).toBeNull()
|
expect(rendered.queryByText('Unsupported assets')).toBeNull()
|
||||||
expect(
|
expect(
|
||||||
rendered.queryByText((content) => content.startsWith('Some assets are not available through this interface'))
|
rendered.queryByText((content) => content.startsWith('Some assets are not available through this interface'))
|
||||||
).toBeNull()
|
).toBeNull()
|
||||||
|
@ -72,7 +72,7 @@ export default function UnsupportedCurrencyFooter({
|
|||||||
<AutoColumn gap="lg">
|
<AutoColumn gap="lg">
|
||||||
<RowBetween>
|
<RowBetween>
|
||||||
<ThemedText.DeprecatedMediumHeader>
|
<ThemedText.DeprecatedMediumHeader>
|
||||||
<Trans>Unsupported Assets</Trans>
|
<Trans>Unsupported assets</Trans>
|
||||||
</ThemedText.DeprecatedMediumHeader>
|
</ThemedText.DeprecatedMediumHeader>
|
||||||
<CloseIcon onClick={() => setShowDetails(false)} data-testid="close-icon" />
|
<CloseIcon onClick={() => setShowDetails(false)} data-testid="close-icon" />
|
||||||
</RowBetween>
|
</RowBetween>
|
||||||
|
@ -107,12 +107,12 @@ export default function DelegateModal({ isOpen, onDismiss, title }: VoteModalPro
|
|||||||
{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.DeprecatedMediumHeader 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.DeprecatedMediumHeader>
|
</ThemedText.DeprecatedMediumHeader>
|
||||||
</ButtonPrimary>
|
</ButtonPrimary>
|
||||||
<TextButton onClick={() => setUsingDelegate(!usingDelegate)}>
|
<TextButton onClick={() => setUsingDelegate(!usingDelegate)}>
|
||||||
<ThemedText.DeprecatedBlue>
|
<ThemedText.DeprecatedBlue>
|
||||||
{usingDelegate ? <Trans>Remove Delegate</Trans> : <Trans>Add Delegate +</Trans>}
|
{usingDelegate ? <Trans>Remove delegate</Trans> : <Trans>Add delegate +</Trans>}
|
||||||
</ThemedText.DeprecatedBlue>
|
</ThemedText.DeprecatedBlue>
|
||||||
</TextButton>
|
</TextButton>
|
||||||
</AutoColumn>
|
</AutoColumn>
|
||||||
@ -122,7 +122,7 @@ export default function DelegateModal({ isOpen, onDismiss, title }: VoteModalPro
|
|||||||
<LoadingView onDismiss={wrappedOnDismiss}>
|
<LoadingView onDismiss={wrappedOnDismiss}>
|
||||||
<AutoColumn gap="md" justify="center">
|
<AutoColumn gap="md" justify="center">
|
||||||
<ThemedText.DeprecatedLargeHeader>
|
<ThemedText.DeprecatedLargeHeader>
|
||||||
{usingDelegate ? <Trans>Delegating votes</Trans> : <Trans>Unlocking Votes</Trans>}
|
{usingDelegate ? <Trans>Delegating votes</Trans> : <Trans>Unlocking votes</Trans>}
|
||||||
</ThemedText.DeprecatedLargeHeader>
|
</ThemedText.DeprecatedLargeHeader>
|
||||||
<ThemedText.DeprecatedMain fontSize={36}> {formatCurrencyAmount(uniBalance, 4)}</ThemedText.DeprecatedMain>
|
<ThemedText.DeprecatedMain fontSize={36}> {formatCurrencyAmount(uniBalance, 4)}</ThemedText.DeprecatedMain>
|
||||||
</AutoColumn>
|
</AutoColumn>
|
||||||
@ -132,7 +132,7 @@ export default function DelegateModal({ isOpen, onDismiss, title }: VoteModalPro
|
|||||||
<SubmittedView onDismiss={wrappedOnDismiss} hash={hash}>
|
<SubmittedView onDismiss={wrappedOnDismiss} hash={hash}>
|
||||||
<AutoColumn gap="md" justify="center">
|
<AutoColumn gap="md" justify="center">
|
||||||
<ThemedText.DeprecatedLargeHeader>
|
<ThemedText.DeprecatedLargeHeader>
|
||||||
<Trans>Transaction Submitted</Trans>
|
<Trans>Transaction submitted</Trans>
|
||||||
</ThemedText.DeprecatedLargeHeader>
|
</ThemedText.DeprecatedLargeHeader>
|
||||||
<ThemedText.DeprecatedMain fontSize={36}>{formatCurrencyAmount(uniBalance, 4)}</ThemedText.DeprecatedMain>
|
<ThemedText.DeprecatedMain fontSize={36}>{formatCurrencyAmount(uniBalance, 4)}</ThemedText.DeprecatedMain>
|
||||||
</AutoColumn>
|
</AutoColumn>
|
||||||
|
@ -82,7 +82,7 @@ export default function ExecuteModal({ isOpen, onDismiss, proposalId }: ExecuteM
|
|||||||
<AutoColumn gap="lg" justify="center">
|
<AutoColumn gap="lg" justify="center">
|
||||||
<RowBetween>
|
<RowBetween>
|
||||||
<ThemedText.DeprecatedMediumHeader fontWeight={535}>
|
<ThemedText.DeprecatedMediumHeader fontWeight={535}>
|
||||||
<Trans>Execute Proposal {proposalId}</Trans>
|
<Trans>Execute proposal {proposalId}</Trans>
|
||||||
</ThemedText.DeprecatedMediumHeader>
|
</ThemedText.DeprecatedMediumHeader>
|
||||||
<StyledClosed onClick={wrappedOnDismiss} />
|
<StyledClosed onClick={wrappedOnDismiss} />
|
||||||
</RowBetween>
|
</RowBetween>
|
||||||
@ -132,7 +132,7 @@ export default function ExecuteModal({ isOpen, onDismiss, proposalId }: ExecuteM
|
|||||||
<AutoColumn gap="100px" justify="center">
|
<AutoColumn gap="100px" justify="center">
|
||||||
<AutoColumn gap="md" justify="center">
|
<AutoColumn gap="md" justify="center">
|
||||||
<ThemedText.DeprecatedLargeHeader>
|
<ThemedText.DeprecatedLargeHeader>
|
||||||
<Trans>Execution Submitted</Trans>
|
<Trans>Execution submitted</Trans>
|
||||||
</ThemedText.DeprecatedLargeHeader>
|
</ThemedText.DeprecatedLargeHeader>
|
||||||
</AutoColumn>
|
</AutoColumn>
|
||||||
{chainId && (
|
{chainId && (
|
||||||
|
@ -82,7 +82,7 @@ export default function QueueModal({ isOpen, onDismiss, proposalId }: QueueModal
|
|||||||
<AutoColumn gap="lg" justify="center">
|
<AutoColumn gap="lg" justify="center">
|
||||||
<RowBetween>
|
<RowBetween>
|
||||||
<ThemedText.DeprecatedMediumHeader fontWeight={535}>
|
<ThemedText.DeprecatedMediumHeader fontWeight={535}>
|
||||||
<Trans>Queue Proposal {proposalId}</Trans>
|
<Trans>Queue proposal {proposalId}</Trans>
|
||||||
</ThemedText.DeprecatedMediumHeader>
|
</ThemedText.DeprecatedMediumHeader>
|
||||||
<StyledClosed onClick={wrappedOnDismiss} />
|
<StyledClosed onClick={wrappedOnDismiss} />
|
||||||
</RowBetween>
|
</RowBetween>
|
||||||
@ -132,7 +132,7 @@ export default function QueueModal({ isOpen, onDismiss, proposalId }: QueueModal
|
|||||||
<AutoColumn gap="100px" justify="center">
|
<AutoColumn gap="100px" justify="center">
|
||||||
<AutoColumn gap="md" justify="center">
|
<AutoColumn gap="md" justify="center">
|
||||||
<ThemedText.DeprecatedLargeHeader>
|
<ThemedText.DeprecatedLargeHeader>
|
||||||
<Trans>Transaction Submitted</Trans>
|
<Trans>Transaction submitted</Trans>
|
||||||
</ThemedText.DeprecatedLargeHeader>
|
</ThemedText.DeprecatedLargeHeader>
|
||||||
</AutoColumn>
|
</AutoColumn>
|
||||||
{chainId && (
|
{chainId && (
|
||||||
|
@ -125,7 +125,7 @@ export default function VoteModal({ isOpen, onDismiss, proposalId, voteOption }:
|
|||||||
<AutoColumn gap="100px" justify="center">
|
<AutoColumn gap="100px" justify="center">
|
||||||
<AutoColumn gap="md" justify="center">
|
<AutoColumn gap="md" justify="center">
|
||||||
<ThemedText.DeprecatedLargeHeader>
|
<ThemedText.DeprecatedLargeHeader>
|
||||||
<Trans>Submitting Vote</Trans>
|
<Trans>Submitting vote</Trans>
|
||||||
</ThemedText.DeprecatedLargeHeader>
|
</ThemedText.DeprecatedLargeHeader>
|
||||||
</AutoColumn>
|
</AutoColumn>
|
||||||
<ThemedText.DeprecatedSubHeader>
|
<ThemedText.DeprecatedSubHeader>
|
||||||
|
@ -74,7 +74,7 @@ const StrongWarning: Warning = {
|
|||||||
|
|
||||||
const BlockedWarning: Warning = {
|
const BlockedWarning: Warning = {
|
||||||
level: WARNING_LEVEL.BLOCKED,
|
level: WARNING_LEVEL.BLOCKED,
|
||||||
message: <Trans>Not Available</Trans>,
|
message: <Trans>Not available</Trans>,
|
||||||
canProceed: false,
|
canProceed: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -301,7 +301,7 @@ describe('BagFooter.tsx', () => {
|
|||||||
|
|
||||||
renderBagFooter()
|
renderBagFooter()
|
||||||
const buyButton = getBuyButton()
|
const buyButton = getBuyButton()
|
||||||
expect(buyButton.textContent).toBe('Fetching Route')
|
expect(buyButton.textContent).toBe('Fetching route')
|
||||||
expect(buyButton).toBeDisabled()
|
expect(buyButton).toBeDisabled()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -329,7 +329,7 @@ describe('BagFooter.tsx', () => {
|
|||||||
renderBagFooter()
|
renderBagFooter()
|
||||||
const buyButton = getBuyButton()
|
const buyButton = getBuyButton()
|
||||||
|
|
||||||
expect(buyButton.textContent).toBe('Loading Allowance')
|
expect(buyButton.textContent).toBe('Loading allowance')
|
||||||
expect(buyButton).toBeDisabled()
|
expect(buyButton).toBeDisabled()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ export function getBuyButtonStateData(
|
|||||||
},
|
},
|
||||||
[BuyButtonStates.FETCHING_TOKEN_ROUTE]: {
|
[BuyButtonStates.FETCHING_TOKEN_ROUTE]: {
|
||||||
...defaultBuyButtonState,
|
...defaultBuyButtonState,
|
||||||
buttonText: <Trans>Fetching Route</Trans>,
|
buttonText: <Trans>Fetching route</Trans>,
|
||||||
},
|
},
|
||||||
[BuyButtonStates.INVALID_TOKEN_ROUTE]: {
|
[BuyButtonStates.INVALID_TOKEN_ROUTE]: {
|
||||||
...defaultBuyButtonState,
|
...defaultBuyButtonState,
|
||||||
@ -101,7 +101,7 @@ export function getBuyButtonStateData(
|
|||||||
},
|
},
|
||||||
[BuyButtonStates.LOADING_ALLOWANCE]: {
|
[BuyButtonStates.LOADING_ALLOWANCE]: {
|
||||||
...defaultBuyButtonState,
|
...defaultBuyButtonState,
|
||||||
buttonText: <Trans>Loading Allowance</Trans>,
|
buttonText: <Trans>Loading allowance</Trans>,
|
||||||
},
|
},
|
||||||
[BuyButtonStates.IN_WALLET_ALLOWANCE_APPROVAL]: {
|
[BuyButtonStates.IN_WALLET_ALLOWANCE_APPROVAL]: {
|
||||||
...defaultBuyButtonState,
|
...defaultBuyButtonState,
|
||||||
|
@ -199,10 +199,10 @@ export const NFTListingsGrid = ({ selectedMarkets }: { selectedMarkets: ListingM
|
|||||||
prompt = <Trans>Floor price</Trans>
|
prompt = <Trans>Floor price</Trans>
|
||||||
break
|
break
|
||||||
case SetPriceMethod.LAST_PRICE:
|
case SetPriceMethod.LAST_PRICE:
|
||||||
prompt = <Trans>Last Price</Trans>
|
prompt = <Trans>Last price</Trans>
|
||||||
break
|
break
|
||||||
case SetPriceMethod.SAME_PRICE:
|
case SetPriceMethod.SAME_PRICE:
|
||||||
prompt = <Trans>Same Price</Trans>
|
prompt = <Trans>Same price</Trans>
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
|
@ -94,7 +94,7 @@ export default function Profile() {
|
|||||||
</ThemedText.HeadlineMedium>
|
</ThemedText.HeadlineMedium>
|
||||||
<ConnectWalletButton onClick={toggleWalletDrawer}>
|
<ConnectWalletButton onClick={toggleWalletDrawer}>
|
||||||
<ThemedText.SubHeader color="white" lineHeight="20px">
|
<ThemedText.SubHeader color="white" lineHeight="20px">
|
||||||
<Trans>Connect Wallet</Trans>
|
<Trans>Connect wallet</Trans>
|
||||||
</ThemedText.SubHeader>
|
</ThemedText.SubHeader>
|
||||||
</ConnectWalletButton>
|
</ConnectWalletButton>
|
||||||
</Center>
|
</Center>
|
||||||
|
@ -483,7 +483,7 @@ function AddLiquidity() {
|
|||||||
element={InterfaceElementName.CONNECT_WALLET_BUTTON}
|
element={InterfaceElementName.CONNECT_WALLET_BUTTON}
|
||||||
>
|
>
|
||||||
<ButtonLight onClick={toggleWalletDrawer} $borderRadius="12px" padding="12px">
|
<ButtonLight onClick={toggleWalletDrawer} $borderRadius="12px" padding="12px">
|
||||||
<Trans>Connect Wallet</Trans>
|
<Trans>Connect wallet</Trans>
|
||||||
</ButtonLight>
|
</ButtonLight>
|
||||||
</TraceEvent>
|
</TraceEvent>
|
||||||
) : (
|
) : (
|
||||||
@ -611,7 +611,7 @@ function AddLiquidity() {
|
|||||||
<MediumOnly>
|
<MediumOnly>
|
||||||
<ButtonText onClick={clearAll}>
|
<ButtonText onClick={clearAll}>
|
||||||
<ThemedText.DeprecatedBlue fontSize="12px">
|
<ThemedText.DeprecatedBlue fontSize="12px">
|
||||||
<Trans>Clear All</Trans>
|
<Trans>Clear all</Trans>
|
||||||
</ThemedText.DeprecatedBlue>
|
</ThemedText.DeprecatedBlue>
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
</MediumOnly>
|
</MediumOnly>
|
||||||
@ -626,7 +626,7 @@ function AddLiquidity() {
|
|||||||
<AutoColumn gap="md">
|
<AutoColumn gap="md">
|
||||||
<RowBetween paddingBottom="20px">
|
<RowBetween paddingBottom="20px">
|
||||||
<ThemedText.DeprecatedLabel>
|
<ThemedText.DeprecatedLabel>
|
||||||
<Trans>Select Pair</Trans>
|
<Trans>Select pair</Trans>
|
||||||
</ThemedText.DeprecatedLabel>
|
</ThemedText.DeprecatedLabel>
|
||||||
</RowBetween>
|
</RowBetween>
|
||||||
<RowBetween gap="md">
|
<RowBetween gap="md">
|
||||||
@ -672,7 +672,7 @@ function AddLiquidity() {
|
|||||||
{hasExistingPosition && existingPosition && (
|
{hasExistingPosition && existingPosition && (
|
||||||
<PositionPreview
|
<PositionPreview
|
||||||
position={existingPosition}
|
position={existingPosition}
|
||||||
title={<Trans>Selected Range</Trans>}
|
title={<Trans>Selected range</Trans>}
|
||||||
inRange={!outOfRange}
|
inRange={!outOfRange}
|
||||||
ticksAtLimit={ticksAtLimit}
|
ticksAtLimit={ticksAtLimit}
|
||||||
/>
|
/>
|
||||||
@ -684,7 +684,7 @@ function AddLiquidity() {
|
|||||||
<DynamicSection gap="md" disabled={!feeAmount || invalidPool}>
|
<DynamicSection gap="md" disabled={!feeAmount || invalidPool}>
|
||||||
<RowBetween>
|
<RowBetween>
|
||||||
<ThemedText.DeprecatedLabel>
|
<ThemedText.DeprecatedLabel>
|
||||||
<Trans>Set Price Range</Trans>
|
<Trans>Set price range</Trans>
|
||||||
</ThemedText.DeprecatedLabel>
|
</ThemedText.DeprecatedLabel>
|
||||||
|
|
||||||
{Boolean(baseCurrency && quoteCurrency) && (
|
{Boolean(baseCurrency && quoteCurrency) && (
|
||||||
@ -762,7 +762,7 @@ function AddLiquidity() {
|
|||||||
<AutoColumn gap="2px" style={{ marginTop: '0.5rem' }}>
|
<AutoColumn gap="2px" style={{ marginTop: '0.5rem' }}>
|
||||||
<Trans>
|
<Trans>
|
||||||
<ThemedText.DeprecatedMain fontWeight={535} fontSize={12} color="text1">
|
<ThemedText.DeprecatedMain fontWeight={535} fontSize={12} color="text1">
|
||||||
Current Price:
|
Current price:
|
||||||
</ThemedText.DeprecatedMain>
|
</ThemedText.DeprecatedMain>
|
||||||
<ThemedText.DeprecatedBody fontWeight={535} fontSize={20} color="text1">
|
<ThemedText.DeprecatedBody fontWeight={535} fontSize={20} color="text1">
|
||||||
{price && (
|
{price && (
|
||||||
@ -864,7 +864,7 @@ function AddLiquidity() {
|
|||||||
<DynamicSection disabled={invalidPool || invalidRange || (noLiquidity && !startPriceTypedValue)}>
|
<DynamicSection disabled={invalidPool || invalidRange || (noLiquidity && !startPriceTypedValue)}>
|
||||||
<AutoColumn gap="md">
|
<AutoColumn gap="md">
|
||||||
<ThemedText.DeprecatedLabel>
|
<ThemedText.DeprecatedLabel>
|
||||||
{hasExistingPosition ? <Trans>Add more liquidity</Trans> : <Trans>Deposit Amounts</Trans>}
|
{hasExistingPosition ? <Trans>Add more liquidity</Trans> : <Trans>Deposit amounts</Trans>}
|
||||||
</ThemedText.DeprecatedLabel>
|
</ThemedText.DeprecatedLabel>
|
||||||
|
|
||||||
<CurrencyInputPanel
|
<CurrencyInputPanel
|
||||||
|
@ -70,7 +70,7 @@ export function ConfirmAddModalBottom({
|
|||||||
</RowBetween>
|
</RowBetween>
|
||||||
<ButtonPrimary style={{ margin: '20px 0 0 0' }} onClick={onAdd}>
|
<ButtonPrimary style={{ margin: '20px 0 0 0' }} onClick={onAdd}>
|
||||||
<Text fontWeight={535} fontSize={20}>
|
<Text fontWeight={535} fontSize={20}>
|
||||||
{noLiquidity ? <Trans>Create Pool & Supply</Trans> : <Trans>Confirm Supply</Trans>}
|
{noLiquidity ? <Trans>Create pool & supply</Trans> : <Trans>Confirm supply</Trans>}
|
||||||
</Text>
|
</Text>
|
||||||
</ButtonPrimary>
|
</ButtonPrimary>
|
||||||
</>
|
</>
|
||||||
|
@ -58,7 +58,7 @@ export function PoolPriceBar({
|
|||||||
%
|
%
|
||||||
</ThemedText.DeprecatedBlack>
|
</ThemedText.DeprecatedBlack>
|
||||||
<Text fontWeight={535} fontSize={14} color={theme.neutral2} pt={1}>
|
<Text fontWeight={535} fontSize={14} color={theme.neutral2} pt={1}>
|
||||||
<Trans>Share of Pool</Trans>
|
<Trans>Share of pool</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</AutoColumn>
|
</AutoColumn>
|
||||||
</AutoRow>
|
</AutoRow>
|
||||||
|
@ -443,7 +443,7 @@ export default function AddLiquidity() {
|
|||||||
{addIsUnsupported ? (
|
{addIsUnsupported ? (
|
||||||
<ButtonPrimary disabled={true}>
|
<ButtonPrimary disabled={true}>
|
||||||
<ThemedText.DeprecatedMain mb="4px">
|
<ThemedText.DeprecatedMain mb="4px">
|
||||||
<Trans>Unsupported Asset</Trans>
|
<Trans>Unsupported asset</Trans>
|
||||||
</ThemedText.DeprecatedMain>
|
</ThemedText.DeprecatedMain>
|
||||||
</ButtonPrimary>
|
</ButtonPrimary>
|
||||||
) : !account ? (
|
) : !account ? (
|
||||||
@ -454,7 +454,7 @@ export default function AddLiquidity() {
|
|||||||
element={InterfaceElementName.CONNECT_WALLET_BUTTON}
|
element={InterfaceElementName.CONNECT_WALLET_BUTTON}
|
||||||
>
|
>
|
||||||
<ButtonLight onClick={toggleWalletDrawer}>
|
<ButtonLight onClick={toggleWalletDrawer}>
|
||||||
<Trans>Connect Wallet</Trans>
|
<Trans>Connect wallet</Trans>
|
||||||
</ButtonLight>
|
</ButtonLight>
|
||||||
</TraceEvent>
|
</TraceEvent>
|
||||||
) : (
|
) : (
|
||||||
|
@ -77,7 +77,7 @@ export const ProposalActionSelector = ({
|
|||||||
<ProposalActionSelectorFlex>
|
<ProposalActionSelectorFlex>
|
||||||
<ProposalActionSelectorContainer className={className}>
|
<ProposalActionSelectorContainer className={className}>
|
||||||
<ActionSelectorHeader>
|
<ActionSelectorHeader>
|
||||||
<Trans>Proposed Action</Trans>
|
<Trans>Proposed action</Trans>
|
||||||
</ActionSelectorHeader>
|
</ActionSelectorHeader>
|
||||||
<ActionDropdown onClick={onClick}>{proposalAction}</ActionDropdown>
|
<ActionDropdown onClick={onClick}>{proposalAction}</ActionDropdown>
|
||||||
</ProposalActionSelectorContainer>
|
</ProposalActionSelectorContainer>
|
||||||
@ -113,14 +113,14 @@ export function ProposalActionSelectorModal({
|
|||||||
<MenuItem onClick={() => handleProposalActionSelect(ProposalAction.TRANSFER_TOKEN)}>
|
<MenuItem onClick={() => handleProposalActionSelect(ProposalAction.TRANSFER_TOKEN)}>
|
||||||
<Column>
|
<Column>
|
||||||
<Text fontWeight={535}>
|
<Text fontWeight={535}>
|
||||||
<Trans>Transfer Token</Trans>
|
<Trans>Transfer token</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</Column>
|
</Column>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem onClick={() => handleProposalActionSelect(ProposalAction.APPROVE_TOKEN)}>
|
<MenuItem onClick={() => handleProposalActionSelect(ProposalAction.APPROVE_TOKEN)}>
|
||||||
<Column>
|
<Column>
|
||||||
<Text fontWeight={535}>
|
<Text fontWeight={535}>
|
||||||
<Trans>Approve Token</Trans>
|
<Trans>Approve token</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</Column>
|
</Column>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
@ -26,7 +26,7 @@ export const ProposalSubmissionModal = ({
|
|||||||
<LoadingView onDismiss={onDismiss}>
|
<LoadingView onDismiss={onDismiss}>
|
||||||
<AutoColumn gap="md" justify="center">
|
<AutoColumn gap="md" justify="center">
|
||||||
<ThemedText.DeprecatedLargeHeader>
|
<ThemedText.DeprecatedLargeHeader>
|
||||||
<Trans>Submitting Proposal</Trans>
|
<Trans>Submitting proposal</Trans>
|
||||||
</ThemedText.DeprecatedLargeHeader>
|
</ThemedText.DeprecatedLargeHeader>
|
||||||
</AutoColumn>
|
</AutoColumn>
|
||||||
</LoadingView>
|
</LoadingView>
|
||||||
@ -34,7 +34,7 @@ export const ProposalSubmissionModal = ({
|
|||||||
<SubmittedView onDismiss={onDismiss} hash={hash}>
|
<SubmittedView onDismiss={onDismiss} hash={hash}>
|
||||||
<AutoColumn gap="md" justify="center">
|
<AutoColumn gap="md" justify="center">
|
||||||
<Text fontWeight={535} fontSize={20} textAlign="center">
|
<Text fontWeight={535} fontSize={20} textAlign="center">
|
||||||
<Trans>Proposal Submitted</Trans>
|
<Trans>Proposal submitted</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
{hash && (
|
{hash && (
|
||||||
<ExternalLink href={getExplorerLink(1, hash, ExplorerDataType.TRANSACTION)}>
|
<ExternalLink href={getExplorerLink(1, hash, ExplorerDataType.TRANSACTION)}>
|
||||||
|
@ -101,7 +101,7 @@ const CreateProposalButton = ({
|
|||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<Trans>Create Proposal</Trans>
|
<Trans>Create proposal</Trans>
|
||||||
)}
|
)}
|
||||||
</ButtonError>
|
</ButtonError>
|
||||||
)
|
)
|
||||||
|
@ -2116,7 +2116,7 @@ exports[`disable nft on landing page does not render nft information and card 1`
|
|||||||
<div
|
<div
|
||||||
class="c52 c53"
|
class="c52 c53"
|
||||||
/>
|
/>
|
||||||
Connect Wallet
|
Connect wallet
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -4815,7 +4815,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = `
|
|||||||
<div
|
<div
|
||||||
class="c52 c53"
|
class="c52 c53"
|
||||||
/>
|
/>
|
||||||
Connect Wallet
|
Connect wallet
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -512,7 +512,7 @@ function V2PairMigration({
|
|||||||
|
|
||||||
<RowBetween>
|
<RowBetween>
|
||||||
<ThemedText.DeprecatedBody fontSize={14} color="inherit">
|
<ThemedText.DeprecatedBody fontSize={14} color="inherit">
|
||||||
<Trans>Price Difference:</Trans>
|
<Trans>Price difference:</Trans>
|
||||||
</ThemedText.DeprecatedBody>
|
</ThemedText.DeprecatedBody>
|
||||||
<ThemedText.DeprecatedBlack fontSize={14} color="inherit">
|
<ThemedText.DeprecatedBlack fontSize={14} color="inherit">
|
||||||
<Trans>{priceDifferenceFraction?.toSignificant(4)}%</Trans>
|
<Trans>{priceDifferenceFraction?.toSignificant(4)}%</Trans>
|
||||||
@ -542,7 +542,7 @@ function V2PairMigration({
|
|||||||
|
|
||||||
<RowBetween>
|
<RowBetween>
|
||||||
<ThemedText.DeprecatedLabel>
|
<ThemedText.DeprecatedLabel>
|
||||||
<Trans>Set Price Range</Trans>
|
<Trans>Set price range</Trans>
|
||||||
</ThemedText.DeprecatedLabel>
|
</ThemedText.DeprecatedLabel>
|
||||||
<RateToggle
|
<RateToggle
|
||||||
currencyA={invertPrice ? currency1 : currency0}
|
currencyA={invertPrice ? currency1 : currency0}
|
||||||
@ -737,7 +737,7 @@ export default function MigrateV2Pair() {
|
|||||||
<AutoRow style={{ alignItems: 'center', justifyContent: 'space-between' }} gap="8px">
|
<AutoRow style={{ alignItems: 'center', justifyContent: 'space-between' }} gap="8px">
|
||||||
<BackArrowLink to="/migrate/v2" />
|
<BackArrowLink to="/migrate/v2" />
|
||||||
<ThemedText.DeprecatedMediumHeader>
|
<ThemedText.DeprecatedMediumHeader>
|
||||||
<Trans>Migrate V2 Liquidity</Trans>
|
<Trans>Migrate V2 liquidity</Trans>
|
||||||
</ThemedText.DeprecatedMediumHeader>
|
</ThemedText.DeprecatedMediumHeader>
|
||||||
<SettingsTab
|
<SettingsTab
|
||||||
autoSlippage={DEFAULT_MIGRATE_SLIPPAGE_TOLERANCE}
|
autoSlippage={DEFAULT_MIGRATE_SLIPPAGE_TOLERANCE}
|
||||||
|
@ -122,7 +122,7 @@ export default function MigrateV2() {
|
|||||||
<AutoRow style={{ alignItems: 'center', justifyContent: 'space-between' }} gap="8px">
|
<AutoRow style={{ alignItems: 'center', justifyContent: 'space-between' }} gap="8px">
|
||||||
<BackArrowLink to="/pools" />
|
<BackArrowLink to="/pools" />
|
||||||
<ThemedText.DeprecatedMediumHeader>
|
<ThemedText.DeprecatedMediumHeader>
|
||||||
<Trans>Migrate V2 Liquidity</Trans>
|
<Trans>Migrate V2 liquidity</Trans>
|
||||||
</ThemedText.DeprecatedMediumHeader>
|
</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>} />
|
||||||
@ -170,7 +170,7 @@ export default function MigrateV2() {
|
|||||||
})}
|
})}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<EmptyState message={<Trans>No V2 Liquidity found.</Trans>} />
|
<EmptyState message={<Trans>No V2 liquidity found.</Trans>} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<AutoColumn justify="center" gap="md">
|
<AutoColumn justify="center" gap="md">
|
||||||
|
@ -704,7 +704,7 @@ function PositionPageContent() {
|
|||||||
$borderRadius="12px"
|
$borderRadius="12px"
|
||||||
style={{ marginRight: '8px' }}
|
style={{ marginRight: '8px' }}
|
||||||
>
|
>
|
||||||
<Trans>Increase Liquidity</Trans>
|
<Trans>Increase liquidity</Trans>
|
||||||
</ButtonGray>
|
</ButtonGray>
|
||||||
) : null}
|
) : null}
|
||||||
{tokenId && !removed ? (
|
{tokenId && !removed ? (
|
||||||
@ -715,7 +715,7 @@ function PositionPageContent() {
|
|||||||
width="fit-content"
|
width="fit-content"
|
||||||
$borderRadius="12px"
|
$borderRadius="12px"
|
||||||
>
|
>
|
||||||
<Trans>Remove Liquidity</Trans>
|
<Trans>Remove liquidity</Trans>
|
||||||
</SmallButtonPrimary>
|
</SmallButtonPrimary>
|
||||||
) : null}
|
) : null}
|
||||||
</ActionButtonResponsiveRow>
|
</ActionButtonResponsiveRow>
|
||||||
|
@ -193,12 +193,12 @@ export default function Pool() {
|
|||||||
</ResponsiveButtonSecondary>
|
</ResponsiveButtonSecondary>
|
||||||
<ResponsiveButtonPrimary id="find-pool-button" as={Link} to="/pools/v2/find" padding="6px 8px">
|
<ResponsiveButtonPrimary id="find-pool-button" as={Link} to="/pools/v2/find" padding="6px 8px">
|
||||||
<Text fontWeight={535} fontSize={16}>
|
<Text fontWeight={535} fontSize={16}>
|
||||||
<Trans>Import Pool</Trans>
|
<Trans>Import pool</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</ResponsiveButtonPrimary>
|
</ResponsiveButtonPrimary>
|
||||||
<ResponsiveButtonPrimary id="join-pool-button" as={Link} to="/add/v2/ETH" padding="6px 8px">
|
<ResponsiveButtonPrimary id="join-pool-button" as={Link} to="/add/v2/ETH" padding="6px 8px">
|
||||||
<Text fontWeight={535} fontSize={16}>
|
<Text fontWeight={535} fontSize={16}>
|
||||||
<Trans>Add V2 Liquidity</Trans>
|
<Trans>Add V2 liquidity</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</ResponsiveButtonPrimary>
|
</ResponsiveButtonPrimary>
|
||||||
</ButtonRow>
|
</ButtonRow>
|
||||||
@ -257,7 +257,7 @@ export default function Pool() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ChevronsRight size={16} style={{ marginRight: '8px' }} />
|
<ChevronsRight size={16} style={{ marginRight: '8px' }} />
|
||||||
<Trans>Migrate Liquidity to V3</Trans>
|
<Trans>Migrate liquidity to V3</Trans>
|
||||||
</ButtonOutlined>
|
</ButtonOutlined>
|
||||||
</RowFixed>
|
</RowFixed>
|
||||||
</>
|
</>
|
||||||
|
@ -165,7 +165,7 @@ export default function PoolFinder() {
|
|||||||
style={{ justifyItems: 'center', backgroundColor: '', padding: '12px 0px', borderRadius: '12px' }}
|
style={{ justifyItems: 'center', backgroundColor: '', padding: '12px 0px', borderRadius: '12px' }}
|
||||||
>
|
>
|
||||||
<Text textAlign="center" fontWeight={535}>
|
<Text textAlign="center" fontWeight={535}>
|
||||||
<Trans>Pool Found!</Trans>
|
<Trans>Pool found!</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
<StyledInternalLink to="pools/v2">
|
<StyledInternalLink to="pools/v2">
|
||||||
<Text textAlign="center">
|
<Text textAlign="center">
|
||||||
|
@ -292,7 +292,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
|
|||||||
hash={txnHash ?? ''}
|
hash={txnHash ?? ''}
|
||||||
reviewContent={() => (
|
reviewContent={() => (
|
||||||
<ConfirmationModalContent
|
<ConfirmationModalContent
|
||||||
title={<Trans>Remove Liquidity</Trans>}
|
title={<Trans>Remove liquidity</Trans>}
|
||||||
onDismiss={handleDismissConfirmation}
|
onDismiss={handleDismissConfirmation}
|
||||||
topContent={modalHeader}
|
topContent={modalHeader}
|
||||||
/>
|
/>
|
||||||
|
@ -483,7 +483,7 @@ function RemoveLiquidity() {
|
|||||||
<AutoColumn gap="20px">
|
<AutoColumn gap="20px">
|
||||||
<RowBetween>
|
<RowBetween>
|
||||||
<Text fontWeight={535}>
|
<Text fontWeight={535}>
|
||||||
<Trans>Remove Amount</Trans>
|
<Trans>Remove amount</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
<ClickableText
|
<ClickableText
|
||||||
fontWeight={535}
|
fontWeight={535}
|
||||||
@ -651,7 +651,7 @@ function RemoveLiquidity() {
|
|||||||
element={InterfaceElementName.CONNECT_WALLET_BUTTON}
|
element={InterfaceElementName.CONNECT_WALLET_BUTTON}
|
||||||
>
|
>
|
||||||
<ButtonLight onClick={toggleWalletDrawer}>
|
<ButtonLight onClick={toggleWalletDrawer}>
|
||||||
<Trans>Connect Wallet</Trans>
|
<Trans>Connect wallet</Trans>
|
||||||
</ButtonLight>
|
</ButtonLight>
|
||||||
</TraceEvent>
|
</TraceEvent>
|
||||||
) : (
|
) : (
|
||||||
|
@ -727,7 +727,7 @@ export function Swap({
|
|||||||
{swapIsUnsupported ? (
|
{swapIsUnsupported ? (
|
||||||
<ButtonPrimary $borderRadius="16px" disabled={true}>
|
<ButtonPrimary $borderRadius="16px" disabled={true}>
|
||||||
<ThemedText.DeprecatedMain mb="4px">
|
<ThemedText.DeprecatedMain mb="4px">
|
||||||
<Trans>Unsupported Asset</Trans>
|
<Trans>Unsupported asset</Trans>
|
||||||
</ThemedText.DeprecatedMain>
|
</ThemedText.DeprecatedMain>
|
||||||
</ButtonPrimary>
|
</ButtonPrimary>
|
||||||
) : switchingChain ? (
|
) : switchingChain ? (
|
||||||
@ -742,7 +742,7 @@ export function Swap({
|
|||||||
element={InterfaceElementName.CONNECT_WALLET_BUTTON}
|
element={InterfaceElementName.CONNECT_WALLET_BUTTON}
|
||||||
>
|
>
|
||||||
<ButtonLight onClick={toggleWalletDrawer} fontWeight={535} $borderRadius="16px">
|
<ButtonLight onClick={toggleWalletDrawer} fontWeight={535} $borderRadius="16px">
|
||||||
<Trans>Connect Wallet</Trans>
|
<Trans>Connect wallet</Trans>
|
||||||
</ButtonLight>
|
</ButtonLight>
|
||||||
</TraceEvent>
|
</TraceEvent>
|
||||||
) : chainId && chainId !== connectedChainId ? (
|
) : chainId && chainId !== connectedChainId ? (
|
||||||
@ -806,7 +806,7 @@ export function Swap({
|
|||||||
) : routeIsSyncing || routeIsLoading ? (
|
) : routeIsSyncing || routeIsLoading ? (
|
||||||
<Trans>Swap</Trans>
|
<Trans>Swap</Trans>
|
||||||
) : priceImpactSeverity > 2 ? (
|
) : priceImpactSeverity > 2 ? (
|
||||||
<Trans>Swap Anyway</Trans>
|
<Trans>Swap anyway</Trans>
|
||||||
) : (
|
) : (
|
||||||
<Trans>Swap</Trans>
|
<Trans>Swap</Trans>
|
||||||
)}
|
)}
|
||||||
|
@ -150,7 +150,7 @@ export default function Landing() {
|
|||||||
<DelegateModal
|
<DelegateModal
|
||||||
isOpen={showDelegateModal}
|
isOpen={showDelegateModal}
|
||||||
onDismiss={toggleDelegateModal}
|
onDismiss={toggleDelegateModal}
|
||||||
title={showUnlockVoting ? <Trans>Unlock Votes</Trans> : <Trans>Update Delegation</Trans>}
|
title={showUnlockVoting ? <Trans>Unlock votes</Trans> : <Trans>Update delegation</Trans>}
|
||||||
/>
|
/>
|
||||||
<TopSection gap="md">
|
<TopSection gap="md">
|
||||||
<VoteCard>
|
<VoteCard>
|
||||||
@ -160,7 +160,7 @@ export default function Landing() {
|
|||||||
<AutoColumn gap="md">
|
<AutoColumn gap="md">
|
||||||
<RowBetween>
|
<RowBetween>
|
||||||
<ThemedText.DeprecatedWhite fontWeight={535}>
|
<ThemedText.DeprecatedWhite fontWeight={535}>
|
||||||
<Trans>Uniswap Governance</Trans>
|
<Trans>Uniswap governance</Trans>
|
||||||
</ThemedText.DeprecatedWhite>
|
</ThemedText.DeprecatedWhite>
|
||||||
</RowBetween>
|
</RowBetween>
|
||||||
<RowBetween>
|
<RowBetween>
|
||||||
@ -203,7 +203,7 @@ export default function Landing() {
|
|||||||
$borderRadius="8px"
|
$borderRadius="8px"
|
||||||
onClick={toggleDelegateModal}
|
onClick={toggleDelegateModal}
|
||||||
>
|
>
|
||||||
<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.DeprecatedBody fontWeight={535} mr="6px">
|
<ThemedText.DeprecatedBody fontWeight={535} mr="6px">
|
||||||
@ -229,7 +229,7 @@ export default function Landing() {
|
|||||||
style={{ width: 'fit-content', borderRadius: '8px', height: '40px' }}
|
style={{ width: 'fit-content', borderRadius: '8px', height: '40px' }}
|
||||||
padding="8px"
|
padding="8px"
|
||||||
>
|
>
|
||||||
<Trans>Create Proposal</Trans>
|
<Trans>Create proposal</Trans>
|
||||||
</ButtonPrimary>
|
</ButtonPrimary>
|
||||||
</AutoRow>
|
</AutoRow>
|
||||||
</WrapSmall>
|
</WrapSmall>
|
||||||
@ -266,7 +266,7 @@ export default function Landing() {
|
|||||||
<RowBetween></RowBetween>
|
<RowBetween></RowBetween>
|
||||||
<RowBetween>
|
<RowBetween>
|
||||||
<ThemedText.DeprecatedMain>
|
<ThemedText.DeprecatedMain>
|
||||||
<Trans>Show Cancelled</Trans>
|
<Trans>Show cancelled</Trans>
|
||||||
</ThemedText.DeprecatedMain>
|
</ThemedText.DeprecatedMain>
|
||||||
<Toggle
|
<Toggle
|
||||||
isActive={!hideCancelled}
|
isActive={!hideCancelled}
|
||||||
|
@ -283,7 +283,7 @@ export default function VotePage() {
|
|||||||
<DelegateModal
|
<DelegateModal
|
||||||
isOpen={showDelegateModal}
|
isOpen={showDelegateModal}
|
||||||
onDismiss={toggleDelegateModal}
|
onDismiss={toggleDelegateModal}
|
||||||
title={<Trans>Unlock Votes</Trans>}
|
title={<Trans>Unlock votes</Trans>}
|
||||||
/>
|
/>
|
||||||
<QueueModal isOpen={showQueueModal} onDismiss={toggleQueueModal} proposalId={proposalData?.id} />
|
<QueueModal isOpen={showQueueModal} onDismiss={toggleQueueModal} proposalId={proposalData?.id} />
|
||||||
<ExecuteModal isOpen={showExecuteModal} onDismiss={toggleExecuteModal} proposalId={proposalData?.id} />
|
<ExecuteModal isOpen={showExecuteModal} onDismiss={toggleExecuteModal} proposalId={proposalData?.id} />
|
||||||
@ -346,7 +346,7 @@ export default function VotePage() {
|
|||||||
toggleVoteModal()
|
toggleVoteModal()
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Trans>Vote For</Trans>
|
<Trans>Vote for</Trans>
|
||||||
</ButtonPrimary>
|
</ButtonPrimary>
|
||||||
<ButtonPrimary
|
<ButtonPrimary
|
||||||
padding="8px"
|
padding="8px"
|
||||||
@ -356,7 +356,7 @@ export default function VotePage() {
|
|||||||
toggleVoteModal()
|
toggleVoteModal()
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Trans>Vote Against</Trans>
|
<Trans>Vote against</Trans>
|
||||||
</ButtonPrimary>
|
</ButtonPrimary>
|
||||||
</RowFixed>
|
</RowFixed>
|
||||||
)}
|
)}
|
||||||
|
@ -124,7 +124,7 @@ export function useDerivedBurnInfo(
|
|||||||
|
|
||||||
let error: ReactNode | undefined
|
let error: ReactNode | undefined
|
||||||
if (!account) {
|
if (!account) {
|
||||||
error = <Trans>Connect Wallet</Trans>
|
error = <Trans>Connect wallet</Trans>
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!parsedAmounts[Field.LIQUIDITY] || !parsedAmounts[Field.CURRENCY_A] || !parsedAmounts[Field.CURRENCY_B]) {
|
if (!parsedAmounts[Field.LIQUIDITY] || !parsedAmounts[Field.CURRENCY_A] || !parsedAmounts[Field.CURRENCY_B]) {
|
||||||
|
@ -76,7 +76,7 @@ export function useDerivedV3BurnInfo(
|
|||||||
|
|
||||||
let error: ReactNode | undefined
|
let error: ReactNode | undefined
|
||||||
if (!account) {
|
if (!account) {
|
||||||
error = <Trans>Connect Wallet</Trans>
|
error = <Trans>Connect wallet</Trans>
|
||||||
}
|
}
|
||||||
if (percent === 0) {
|
if (percent === 0) {
|
||||||
error = error ?? <Trans>Enter a percent</Trans>
|
error = error ?? <Trans>Enter a percent</Trans>
|
||||||
|
@ -178,7 +178,7 @@ export function useDerivedMintInfo(
|
|||||||
|
|
||||||
let error: ReactNode | undefined
|
let error: ReactNode | undefined
|
||||||
if (!account) {
|
if (!account) {
|
||||||
error = <Trans>Connect Wallet</Trans>
|
error = <Trans>Connect wallet</Trans>
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pairState === PairState.INVALID) {
|
if (pairState === PairState.INVALID) {
|
||||||
|
@ -444,7 +444,7 @@ export function useV3DerivedMintInfo(
|
|||||||
|
|
||||||
let errorMessage: ReactNode | undefined
|
let errorMessage: ReactNode | undefined
|
||||||
if (!account) {
|
if (!account) {
|
||||||
errorMessage = <Trans>Connect Wallet</Trans>
|
errorMessage = <Trans>Connect wallet</Trans>
|
||||||
}
|
}
|
||||||
|
|
||||||
if (poolState === PoolState.INVALID) {
|
if (poolState === PoolState.INVALID) {
|
||||||
|
@ -174,7 +174,7 @@ export function useDerivedSwapInfo(state: SwapState, chainId: ChainId | undefine
|
|||||||
let inputError: ReactNode | undefined
|
let inputError: ReactNode | undefined
|
||||||
|
|
||||||
if (!account) {
|
if (!account) {
|
||||||
inputError = connectionReady ? <Trans>Connect Wallet</Trans> : <Trans>Connecting Wallet...</Trans>
|
inputError = connectionReady ? <Trans>Connect wallet</Trans> : <Trans>Connecting wallet...</Trans>
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!currencies[Field.INPUT] || !currencies[Field.OUTPUT]) {
|
if (!currencies[Field.INPUT] || !currencies[Field.OUTPUT]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user