bug fixes (#722)
This commit is contained in:
parent
e5c5bad7ab
commit
3c112b5746
@ -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>
|
||||||
|
@ -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({
|
|||||||
onDismiss()
|
onDismiss()
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{balance ? 'Manage' : 'Join'}
|
{balance ? (zeroBalance ? 'Join' : 'Manage') : 'Join'}
|
||||||
</ButtonPrimary>
|
</ButtonPrimary>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
)
|
)
|
||||||
|
@ -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(100)
|
||||||
const debouncedInternalValue = useDebounce(internalVal, 10)
|
const debouncedInternalValue = useDebounce(internalVal, 10)
|
||||||
|
|
||||||
function handleChange(e, val) {
|
function handleChange(e, val) {
|
||||||
|
Loading…
Reference in New Issue
Block a user