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
3f40f60c
Unverified
Commit
3f40f60c
authored
Aug 18, 2022
by
lynn
Committed by
GitHub
Aug 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix add liquidity select tokens alignment (#4403)
* init * only remove this component in add liquidity screen
parent
176c275a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
index.tsx
src/components/CurrencyInputPanel/index.tsx
+4
-1
No files found.
src/components/CurrencyInputPanel/index.tsx
View file @
3f40f60c
...
...
@@ -11,6 +11,7 @@ import { RedesignVariant, useRedesignFlag } from 'featureFlags/flags/redesign'
import
{
darken
}
from
'
polished
'
import
{
ReactNode
,
useCallback
,
useState
}
from
'
react
'
import
{
Lock
}
from
'
react-feather
'
import
{
useLocation
}
from
'
react-router-dom
'
import
styled
,
{
useTheme
}
from
'
styled-components/macro
'
import
{
formatCurrencyAmount
}
from
'
utils/formatCurrencyAmount
'
...
...
@@ -269,6 +270,8 @@ export default function CurrencyInputPanel({
const
redesignFlagEnabled
=
redesignFlag
===
RedesignVariant
.
Enabled
const
selectedCurrencyBalance
=
useCurrencyBalance
(
account
??
undefined
,
currency
??
undefined
)
const
theme
=
useTheme
()
const
{
pathname
}
=
useLocation
()
const
isAddLiquidityPage
=
pathname
.
includes
(
'
/add
'
)
&&
!
pathname
.
includes
(
'
/add/v2
'
)
const
handleDismissSearch
=
useCallback
(()
=>
{
setModalOpen
(
false
)
...
...
@@ -349,7 +352,7 @@ export default function CurrencyInputPanel({
</
Aligner
>
</
InputCurrencySelect
>
</
InputRow
>
{
redesignFlagEnabled
&&
!
currency
&&
(
{
redesignFlagEnabled
&&
!
currency
&&
!
isAddLiquidityPage
&&
(
<
NoBalanceState
>
<
FiatRow
redesignFlag=
{
redesignFlagEnabled
}
>
<
RowBetween
>
...
...
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