Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
e83a1ec9
Unverified
Commit
e83a1ec9
authored
Apr 30, 2021
by
Noah Zinsmeister
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
undupe migrate menu
parent
8021315f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
30 deletions
+11
-30
index.tsx
src/pages/Pool/index.tsx
+11
-30
No files found.
src/pages/Pool/index.tsx
View file @
e83a1ec9
...
@@ -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
'
)
}
{
t
(
'
Migrate V2 liquidity
'
)
}
?
<
Download
size=
{
16
}
/>
<
Download
size=
{
16
}
/>
</
ButtonGray
>
</
ButtonGray
>
)
)
}
)
}
</
NoLiquidity
>
</
NoLiquidity
>
)
}
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment