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
63907b7b
Unverified
Commit
63907b7b
authored
Apr 19, 2021
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix icon urls
parent
48ad8e52
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
11 deletions
+18
-11
PendingView.tsx
src/components/WalletModal/PendingView.tsx
+1
-1
index.tsx
src/components/WalletModal/index.tsx
+2
-2
index.ts
src/constants/index.ts
+15
-8
No files found.
src/components/WalletModal/PendingView.tsx
View file @
63907b7b
...
@@ -119,7 +119,7 @@ export default function PendingView({
...
@@ -119,7 +119,7 @@ export default function PendingView({
color=
{
option
.
color
}
color=
{
option
.
color
}
header=
{
option
.
name
}
header=
{
option
.
name
}
subheader=
{
option
.
description
}
subheader=
{
option
.
description
}
icon=
{
require
(
'
../../assets/images/
'
+
option
.
iconName
)
}
icon=
{
option
.
iconURL
}
/>
/>
)
)
}
}
...
...
src/components/WalletModal/index.tsx
View file @
63907b7b
...
@@ -227,7 +227,7 @@ export default function WalletModal({
...
@@ -227,7 +227,7 @@ export default function WalletModal({
link=
{
option
.
href
}
link=
{
option
.
href
}
header=
{
option
.
name
}
header=
{
option
.
name
}
subheader=
{
null
}
subheader=
{
null
}
icon=
{
require
(
'
../../assets/images/
'
+
option
.
iconName
)
}
icon=
{
option
.
iconURL
}
/>
/>
)
)
}
}
...
@@ -281,7 +281,7 @@ export default function WalletModal({
...
@@ -281,7 +281,7 @@ export default function WalletModal({
link=
{
option
.
href
}
link=
{
option
.
href
}
header=
{
option
.
name
}
header=
{
option
.
name
}
subheader=
{
null
}
//use option.descriptio to bring back multi-line
subheader=
{
null
}
//use option.descriptio to bring back multi-line
icon=
{
require
(
'
../../assets/images/
'
+
option
.
iconName
)
}
icon=
{
option
.
iconURL
}
/>
/>
)
)
)
)
...
...
src/constants/index.ts
View file @
63907b7b
...
@@ -3,6 +3,13 @@ import { AbstractConnector } from '@web3-react/abstract-connector'
...
@@ -3,6 +3,13 @@ import { AbstractConnector } from '@web3-react/abstract-connector'
import
JSBI
from
'
jsbi
'
import
JSBI
from
'
jsbi
'
import
{
fortmatic
,
injected
,
portis
,
walletconnect
,
walletlink
}
from
'
../connectors
'
import
{
fortmatic
,
injected
,
portis
,
walletconnect
,
walletlink
}
from
'
../connectors
'
import
INJECTED_ICON_URL
from
'
../assets/images/arrow-right.svg
'
import
METAMASK_ICON_URL
from
'
../assets/images/metamask.png
'
import
WALLETCONNECT_ICON_URL
from
'
../assets/images/walletConnectIcon.svg
'
import
COINBASE_ICON_URL
from
'
../assets/images/coinbaseWalletIcon.svg
'
import
FORTMATIC_ICON_URL
from
'
../assets/images/fortmaticIcon.png
'
import
PORTIS_ICON_URL
from
'
../assets/images/portisIcon.png
'
export
const
MULTICALL_ADDRESSES
:
{
[
chainId
in
ChainId
]:
string
}
=
{
export
const
MULTICALL_ADDRESSES
:
{
[
chainId
in
ChainId
]:
string
}
=
{
[
ChainId
.
MAINNET
]:
''
,
[
ChainId
.
MAINNET
]:
''
,
[
ChainId
.
ROPSTEN
]:
'
0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696
'
,
[
ChainId
.
ROPSTEN
]:
'
0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696
'
,
...
@@ -125,7 +132,7 @@ export const PINNED_PAIRS: { readonly [chainId in ChainId]?: [Token, Token][] }
...
@@ -125,7 +132,7 @@ export const PINNED_PAIRS: { readonly [chainId in ChainId]?: [Token, Token][] }
export
interface
WalletInfo
{
export
interface
WalletInfo
{
connector
?:
AbstractConnector
connector
?:
AbstractConnector
name
:
string
name
:
string
icon
Name
:
string
icon
URL
:
string
description
:
string
description
:
string
href
:
string
|
null
href
:
string
|
null
color
:
string
color
:
string
...
@@ -138,7 +145,7 @@ export const SUPPORTED_WALLETS: { [key: string]: WalletInfo } = {
...
@@ -138,7 +145,7 @@ export const SUPPORTED_WALLETS: { [key: string]: WalletInfo } = {
INJECTED
:
{
INJECTED
:
{
connector
:
injected
,
connector
:
injected
,
name
:
'
Injected
'
,
name
:
'
Injected
'
,
icon
Name
:
'
arrow-right.svg
'
,
icon
URL
:
INJECTED_ICON_URL
,
description
:
'
Injected web3 provider.
'
,
description
:
'
Injected web3 provider.
'
,
href
:
null
,
href
:
null
,
color
:
'
#010101
'
,
color
:
'
#010101
'
,
...
@@ -147,7 +154,7 @@ export const SUPPORTED_WALLETS: { [key: string]: WalletInfo } = {
...
@@ -147,7 +154,7 @@ export const SUPPORTED_WALLETS: { [key: string]: WalletInfo } = {
METAMASK
:
{
METAMASK
:
{
connector
:
injected
,
connector
:
injected
,
name
:
'
MetaMask
'
,
name
:
'
MetaMask
'
,
icon
Name
:
'
metamask.png
'
,
icon
URL
:
METAMASK_ICON_URL
,
description
:
'
Easy-to-use browser extension.
'
,
description
:
'
Easy-to-use browser extension.
'
,
href
:
null
,
href
:
null
,
color
:
'
#E8831D
'
,
color
:
'
#E8831D
'
,
...
@@ -155,7 +162,7 @@ export const SUPPORTED_WALLETS: { [key: string]: WalletInfo } = {
...
@@ -155,7 +162,7 @@ export const SUPPORTED_WALLETS: { [key: string]: WalletInfo } = {
WALLET_CONNECT
:
{
WALLET_CONNECT
:
{
connector
:
walletconnect
,
connector
:
walletconnect
,
name
:
'
WalletConnect
'
,
name
:
'
WalletConnect
'
,
icon
Name
:
'
walletConnectIcon.svg
'
,
icon
URL
:
WALLETCONNECT_ICON_URL
,
description
:
'
Connect to Trust Wallet, Rainbow Wallet and more...
'
,
description
:
'
Connect to Trust Wallet, Rainbow Wallet and more...
'
,
href
:
null
,
href
:
null
,
color
:
'
#4196FC
'
,
color
:
'
#4196FC
'
,
...
@@ -164,14 +171,14 @@ export const SUPPORTED_WALLETS: { [key: string]: WalletInfo } = {
...
@@ -164,14 +171,14 @@ export const SUPPORTED_WALLETS: { [key: string]: WalletInfo } = {
WALLET_LINK
:
{
WALLET_LINK
:
{
connector
:
walletlink
,
connector
:
walletlink
,
name
:
'
Coinbase Wallet
'
,
name
:
'
Coinbase Wallet
'
,
icon
Name
:
'
coinbaseWalletIcon.svg
'
,
icon
URL
:
COINBASE_ICON_URL
,
description
:
'
Use Coinbase Wallet app on mobile device
'
,
description
:
'
Use Coinbase Wallet app on mobile device
'
,
href
:
null
,
href
:
null
,
color
:
'
#315CF5
'
,
color
:
'
#315CF5
'
,
},
},
COINBASE_LINK
:
{
COINBASE_LINK
:
{
name
:
'
Open in Coinbase Wallet
'
,
name
:
'
Open in Coinbase Wallet
'
,
icon
Name
:
'
coinbaseWalletIcon.svg
'
,
icon
URL
:
COINBASE_ICON_URL
,
description
:
'
Open in Coinbase Wallet app.
'
,
description
:
'
Open in Coinbase Wallet app.
'
,
href
:
'
https://go.cb-w.com/mtUDhEZPy1
'
,
href
:
'
https://go.cb-w.com/mtUDhEZPy1
'
,
color
:
'
#315CF5
'
,
color
:
'
#315CF5
'
,
...
@@ -181,7 +188,7 @@ export const SUPPORTED_WALLETS: { [key: string]: WalletInfo } = {
...
@@ -181,7 +188,7 @@ export const SUPPORTED_WALLETS: { [key: string]: WalletInfo } = {
FORTMATIC
:
{
FORTMATIC
:
{
connector
:
fortmatic
,
connector
:
fortmatic
,
name
:
'
Fortmatic
'
,
name
:
'
Fortmatic
'
,
icon
Name
:
'
fortmaticIcon.png
'
,
icon
URL
:
FORTMATIC_ICON_URL
,
description
:
'
Login using Fortmatic hosted wallet
'
,
description
:
'
Login using Fortmatic hosted wallet
'
,
href
:
null
,
href
:
null
,
color
:
'
#6748FF
'
,
color
:
'
#6748FF
'
,
...
@@ -190,7 +197,7 @@ export const SUPPORTED_WALLETS: { [key: string]: WalletInfo } = {
...
@@ -190,7 +197,7 @@ export const SUPPORTED_WALLETS: { [key: string]: WalletInfo } = {
Portis
:
{
Portis
:
{
connector
:
portis
,
connector
:
portis
,
name
:
'
Portis
'
,
name
:
'
Portis
'
,
icon
Name
:
'
portisIcon.png
'
,
icon
URL
:
PORTIS_ICON_URL
,
description
:
'
Login using Portis hosted wallet
'
,
description
:
'
Login using Portis hosted wallet
'
,
href
:
null
,
href
:
null
,
color
:
'
#4A6C9B
'
,
color
:
'
#4A6C9B
'
,
...
...
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