Commit e83a1ec9 authored by Noah Zinsmeister's avatar Noah Zinsmeister

undupe migrate menu

parent 8021315f
...@@ -90,11 +90,6 @@ export default function Pool() { ...@@ -90,11 +90,6 @@ export default function Pool() {
const { positions, loading: positionsLoading } = useV3Positions(account) const { positions, loading: positionsLoading } = useV3Positions(account)
const hasPositions = Boolean(positions && positions.length > 0)
const hasV2Liquidity = true
const showMigrateHeaderLink = Boolean(hasV2Liquidity && hasPositions)
const menuItems = [ const menuItems = [
{ {
content: ( content: (
...@@ -110,7 +105,7 @@ export default function Pool() { ...@@ -110,7 +105,7 @@ export default function Pool() {
content: ( content: (
<MenuItem> <MenuItem>
<Download size={16} style={{ marginRight: '8px' }} /> <Download size={16} style={{ marginRight: '8px' }} />
{t('Migrate Liquidity')} {t('Migrate V2 Liquidity')}
</MenuItem> </MenuItem>
), ),
link: '/migrate/v2', link: '/migrate/v2',
...@@ -127,18 +122,6 @@ export default function Pool() { ...@@ -127,18 +122,6 @@ export default function Pool() {
external: true, external: true,
}, },
] ]
if (showMigrateHeaderLink) {
menuItems.unshift({
content: (
<MenuItem>
<Download size={16} style={{ marginRight: '8px' }} />
{t('Migrate v2 liquidity')}
</MenuItem>
),
link: '/migrate/v2',
external: false,
})
}
return ( return (
<> <>
...@@ -191,24 +174,22 @@ export default function Pool() { ...@@ -191,24 +174,22 @@ export default function Pool() {
<NoLiquidity> <NoLiquidity>
<TYPE.mediumHeader color={theme.text3} textAlign="center"> <TYPE.mediumHeader color={theme.text3} textAlign="center">
<Inbox size={48} strokeWidth={1} style={{ marginBottom: '.5rem' }} /> <Inbox size={48} strokeWidth={1} style={{ marginBottom: '.5rem' }} />
<div>{t('Your liquidity positions will appear here.')}</div> <div>{t('Your V3 liquidity positions will appear here.')}</div>
</TYPE.mediumHeader> </TYPE.mediumHeader>
{!account ? ( {!account ? (
<ButtonPrimary style={{ marginTop: '2em', padding: '8px 16px' }} onClick={toggleWalletModal}> <ButtonPrimary style={{ marginTop: '2em', padding: '8px 16px' }} onClick={toggleWalletModal}>
{t('Connect a wallet')} {t('Connect a wallet')}
</ButtonPrimary> </ButtonPrimary>
) : ( ) : (
hasV2Liquidity && ( <ButtonGray
<ButtonGray as={Link}
as={Link} to="/migrate/v2"
to="/migrate/v2" id="import-pool-link"
id="import-pool-link" style={{ marginTop: '2em', padding: '8px 16px', borderRadius: '12px', width: 'fit-content' }}
style={{ marginTop: '2em', padding: '8px 16px', borderRadius: '12px', width: 'fit-content' }} >
> {t('Migrate V2 liquidity')}?&nbsp;&nbsp;
{t('Migrate V2 liquidity')}&nbsp;&nbsp; <Download size={16} />
<Download size={16} /> </ButtonGray>
</ButtonGray>
)
)} )}
</NoLiquidity> </NoLiquidity>
)} )}
......
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