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
c63482b6
Unverified
Commit
c63482b6
authored
Oct 19, 2021
by
Justin Domingue
Committed by
GitHub
Oct 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use l2 logos in base pairs (#2634)
parent
e15a8ddf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
CommonBases.tsx
src/components/SearchModal/CommonBases.tsx
+9
-1
No files found.
src/components/SearchModal/CommonBases.tsx
View file @
c63482b6
...
@@ -5,6 +5,7 @@ import CurrencyLogo from 'components/CurrencyLogo'
...
@@ -5,6 +5,7 @@ import CurrencyLogo from 'components/CurrencyLogo'
import
QuestionHelper
from
'
components/QuestionHelper
'
import
QuestionHelper
from
'
components/QuestionHelper
'
import
{
AutoRow
}
from
'
components/Row
'
import
{
AutoRow
}
from
'
components/Row
'
import
{
COMMON_BASES
}
from
'
constants/routing
'
import
{
COMMON_BASES
}
from
'
constants/routing
'
import
{
useTokenInfoFromActiveList
}
from
'
hooks/useTokenInfoFromActiveList
'
import
{
Text
}
from
'
rebass
'
import
{
Text
}
from
'
rebass
'
import
styled
from
'
styled-components/macro
'
import
styled
from
'
styled-components/macro
'
import
{
currencyId
}
from
'
utils/currencyId
'
import
{
currencyId
}
from
'
utils/currencyId
'
...
@@ -60,7 +61,7 @@ export default function CommonBases({
...
@@ -60,7 +61,7 @@ export default function CommonBases({
disable=
{
isSelected
}
disable=
{
isSelected
}
key=
{
currencyId
(
currency
)
}
key=
{
currencyId
(
currency
)
}
>
>
<
CurrencyLogo
currency=
{
currency
}
style=
{
{
marginRight
:
8
}
}
/>
<
CurrencyLogo
FromList
currency=
{
currency
}
/>
<
Text
fontWeight=
{
500
}
fontSize=
{
16
}
>
<
Text
fontWeight=
{
500
}
fontSize=
{
16
}
>
{
currency
.
symbol
}
{
currency
.
symbol
}
</
Text
>
</
Text
>
...
@@ -71,3 +72,10 @@ export default function CommonBases({
...
@@ -71,3 +72,10 @@ export default function CommonBases({
</
MobileWrapper
>
</
MobileWrapper
>
)
:
null
)
:
null
}
}
/** helper component to retrieve a base currency from the active token lists */
function
CurrencyLogoFromList
({
currency
}:
{
currency
:
Currency
})
{
const
token
=
useTokenInfoFromActiveList
(
currency
)
return
<
CurrencyLogo
currency=
{
token
}
style=
{
{
marginRight
:
8
}
}
/>
}
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