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
3c112b57
Unverified
Commit
3c112b57
authored
May 06, 2020
by
Ian Lapham
Committed by
GitHub
May 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixes (#722)
parent
e5c5bad7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
index.tsx
src/components/CreatePool/index.tsx
+1
-1
index.js
src/components/SearchModal/index.js
+4
-1
index.js
src/components/Slider/index.js
+1
-1
No files found.
src/components/CreatePool/index.tsx
View file @
3c112b57
...
@@ -72,7 +72,7 @@ function CreatePool({ history }) {
...
@@ -72,7 +72,7 @@ function CreatePool({ history }) {
{
token0
?.
symbol
}{
'
'
}
{
token0
?.
symbol
}{
'
'
}
</
Text
>
</
Text
>
<
TYPE
.
darkGray
fontWeight=
{
500
}
fontSize=
{
16
}
marginLeft=
{
'
8px
'
}
>
<
TYPE
.
darkGray
fontWeight=
{
500
}
fontSize=
{
16
}
marginLeft=
{
'
8px
'
}
>
{
token0
.
symbol
===
'
ETH
'
&&
'
(default)
'
}
{
token0
?
.
symbol
===
'
ETH
'
&&
'
(default)
'
}
</
TYPE
.
darkGray
>
</
TYPE
.
darkGray
>
</
Row
>
</
Row
>
</
ButtonDropwdownLight
>
</
ButtonDropwdownLight
>
...
...
src/components/SearchModal/index.js
View file @
3c112b57
...
@@ -350,6 +350,9 @@ function SearchModal({
...
@@ -350,6 +350,9 @@ function SearchModal({
const
token0
=
allTokens
[
allPairs
[
pairAddress
].
token0
]
const
token0
=
allTokens
[
allPairs
[
pairAddress
].
token0
]
const
token1
=
allTokens
[
allPairs
[
pairAddress
].
token1
]
const
token1
=
allTokens
[
allPairs
[
pairAddress
].
token1
]
const
balance
=
allBalances
?.[
account
]?.[
pairAddress
]?.
toSignificant
(
6
)
const
balance
=
allBalances
?.[
account
]?.[
pairAddress
]?.
toSignificant
(
6
)
const
zeroBalance
=
allBalances
?.[
account
]?.[
pairAddress
]?.
raw
&&
JSBI
.
equal
(
allBalances
?.[
account
]?.[
pairAddress
].
raw
,
JSBI
.
BigInt
(
0
))
return
(
return
(
<
MenuItem
<
MenuItem
key
=
{
i
}
key
=
{
i
}
...
@@ -374,7 +377,7 @@ function SearchModal({
...
@@ -374,7 +377,7 @@ function SearchModal({
onDismiss
()
onDismiss
()
}}
}}
>
>
{
balance
?
'
Manage
'
:
'
Join
'
}
{
balance
?
(
zeroBalance
?
'
Join
'
:
'
Manage
'
)
:
'
Join
'
}
<
/ButtonPrimary
>
<
/ButtonPrimary
>
<
/MenuItem
>
<
/MenuItem
>
)
)
...
...
src/components/Slider/index.js
View file @
3c112b57
...
@@ -67,7 +67,7 @@ const StyledSlider = withStyles({
...
@@ -67,7 +67,7 @@ const StyledSlider = withStyles({
})(
Slider
)
})(
Slider
)
export
default
function
InputSlider
({
value
,
onChange
,
override
})
{
export
default
function
InputSlider
({
value
,
onChange
,
override
})
{
const
[
internalVal
,
setInternalVal
]
=
useState
(
0
)
const
[
internalVal
,
setInternalVal
]
=
useState
(
10
0
)
const
debouncedInternalValue
=
useDebounce
(
internalVal
,
10
)
const
debouncedInternalValue
=
useDebounce
(
internalVal
,
10
)
function
handleChange
(
e
,
val
)
{
function
handleChange
(
e
,
val
)
{
...
...
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