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
2182e18f
Commit
2182e18f
authored
Aug 26, 2020
by
Callil Capuozzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add coingecko and tweak list introduction screen
parent
cb36c910
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
6 deletions
+19
-6
lists-dark.png
src/assets/images/token-list/lists-dark.png
+0
-0
lists-light.png
src/assets/images/token-list/lists-light.png
+0
-0
ListIntroduction.tsx
src/components/SearchModal/ListIntroduction.tsx
+18
-6
lists.ts
src/constants/lists.ts
+1
-0
No files found.
src/assets/images/token-list/lists-dark.png
0 → 100644
View file @
2182e18f
4.85 KB
src/assets/images/token-list/lists-light.png
0 → 100644
View file @
2182e18f
8.64 KB
src/components/SearchModal/ListIntroduction.tsx
View file @
2182e18f
...
@@ -5,18 +5,30 @@ import { ButtonPrimary } from '../Button'
...
@@ -5,18 +5,30 @@ import { ButtonPrimary } from '../Button'
import
{
OutlineCard
}
from
'
../Card
'
import
{
OutlineCard
}
from
'
../Card
'
import
Column
,
{
AutoColumn
}
from
'
../Column
'
import
Column
,
{
AutoColumn
}
from
'
../Column
'
import
{
PaddedColumn
}
from
'
./styleds
'
import
{
PaddedColumn
}
from
'
./styleds
'
import
{
useDarkModeManager
}
from
'
../../state/user/hooks
'
import
listLight
from
'
../../assets/images/token-list/lists-light.png
'
import
listDark
from
'
../../assets/images/token-list/lists-dark.png
'
export
default
function
ListIntroduction
({
onSelectList
}:
{
onSelectList
:
()
=>
void
})
{
export
default
function
ListIntroduction
({
onSelectList
}:
{
onSelectList
:
()
=>
void
})
{
const
[
isDark
]
=
useDarkModeManager
()
return
(
return
(
<
Column
style=
{
{
width
:
'
100%
'
,
flex
:
'
1 1
'
}
}
>
<
Column
style=
{
{
width
:
'
100%
'
,
flex
:
'
1 1
'
}
}
>
<
PaddedColumn
>
<
PaddedColumn
>
<
AutoColumn
gap=
"14px"
>
<
AutoColumn
gap=
"14px"
>
<
Text
fontWeight=
{
600
}
fontSize=
{
20
}
>
<
img
Token Lists
style=
{
{
width
:
'
120px
'
,
margin
:
'
0 auto
'
}
}
</
Text
>
src=
{
isDark
?
listDark
:
listLight
}
<
Text
style=
{
{
marginBottom
:
'
8px
'
}
}
>
alt=
"token-list-preview"
You can switch between lists of tokens, as well as add your own custom lists via IPFS, HTTPS and ENS.
{
'
'
}
/>
<
i
>
Start by choosing a list.
</
i
>
<
img
style=
{
{
width
:
'
100%
'
,
borderRadius
:
'
12px
'
}
}
src=
"https://cloudflare-ipfs.com/ipfs/QmRf1rAJcZjV3pwKTHfPdJh4RxR8yvRHkdLjZCsmp7T6hA"
alt=
"token-list-preview"
/>
<
Text
style=
{
{
marginBottom
:
'
8px
'
,
textAlign
:
'
center
'
}
}
>
Uniswap now supports token lists. You can add your own custom lists via IPFS, HTTPS and ENS.
{
'
'
}
</
Text
>
</
Text
>
<
ButtonPrimary
onClick=
{
onSelectList
}
id=
"list-introduction-choose-a-list"
>
<
ButtonPrimary
onClick=
{
onSelectList
}
id=
"list-introduction-choose-a-list"
>
Choose a list
Choose a list
...
...
src/constants/lists.ts
View file @
2182e18f
...
@@ -11,6 +11,7 @@ export const DEFAULT_LIST_OF_LISTS: string[] = [
...
@@ -11,6 +11,7 @@ export const DEFAULT_LIST_OF_LISTS: string[] = [
'
erc20.cmc.eth
'
,
'
erc20.cmc.eth
'
,
'
stablecoin.cmc.eth
'
,
'
stablecoin.cmc.eth
'
,
'
tokenlist.zerion.eth
'
,
'
tokenlist.zerion.eth
'
,
'
https://www.coingecko.com/tokens_list/uniswap/defi_100/v_0_0_0.json
'
,
'
https://defiprime.com/defiprime.tokenlist.json
'
,
'
https://defiprime.com/defiprime.tokenlist.json
'
,
'
https://umaproject.org/uma.tokenlist.json
'
'
https://umaproject.org/uma.tokenlist.json
'
]
]
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