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
50c7d361
Unverified
Commit
50c7d361
authored
Jun 28, 2021
by
Jordan Frankfurt
Committed by
GitHub
Jun 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace trustwallet assets repo w/ our fork (#1922)
parent
8a7f1d51
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
index.tsx
src/components/CurrencyLogo/index.tsx
+1
-1
useColor.ts
src/hooks/useColor.ts
+1
-1
No files found.
src/components/CurrencyLogo/index.tsx
View file @
50c7d361
...
@@ -7,7 +7,7 @@ import { WrappedTokenInfo } from '../../state/lists/wrappedTokenInfo'
...
@@ -7,7 +7,7 @@ import { WrappedTokenInfo } from '../../state/lists/wrappedTokenInfo'
import
Logo
from
'
../Logo
'
import
Logo
from
'
../Logo
'
export
const
getTokenLogoURL
=
(
address
:
string
)
=>
export
const
getTokenLogoURL
=
(
address
:
string
)
=>
`https://raw.githubusercontent.com/
trustwallet
/assets/master/blockchains/ethereum/assets/
${
address
}
/logo.png`
`https://raw.githubusercontent.com/
uniswap
/assets/master/blockchains/ethereum/assets/
${
address
}
/logo.png`
const
StyledEthereumLogo
=
styled
.
img
<
{
size
:
string
}
>
`
const
StyledEthereumLogo
=
styled
.
img
<
{
size
:
string
}
>
`
width:
${({
size
})
=>
size
}
;
width:
${({
size
})
=>
size
}
;
...
...
src/hooks/useColor.ts
View file @
50c7d361
...
@@ -10,7 +10,7 @@ async function getColorFromToken(token: Token): Promise<string | null> {
...
@@ -10,7 +10,7 @@ async function getColorFromToken(token: Token): Promise<string | null> {
return
Promise
.
resolve
(
'
#FAAB14
'
)
return
Promise
.
resolve
(
'
#FAAB14
'
)
}
}
const
path
=
`https://raw.githubusercontent.com/
trustwallet
/assets/master/blockchains/ethereum/assets/
${
token
.
address
}
/logo.png`
const
path
=
`https://raw.githubusercontent.com/
uniswap
/assets/master/blockchains/ethereum/assets/
${
token
.
address
}
/logo.png`
return
Vibrant
.
from
(
path
)
return
Vibrant
.
from
(
path
)
.
getPalette
()
.
getPalette
()
...
...
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