Commit 63907b7b authored by Moody Salem's avatar Moody Salem

fix icon urls

parent 48ad8e52
...@@ -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}
/> />
) )
} }
......
...@@ -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}
/> />
) )
) )
......
...@@ -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
iconName: string iconURL: 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',
iconName: 'arrow-right.svg', iconURL: 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',
iconName: 'metamask.png', iconURL: 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',
iconName: 'walletConnectIcon.svg', iconURL: 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',
iconName: 'coinbaseWalletIcon.svg', iconURL: 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',
iconName: 'coinbaseWalletIcon.svg', iconURL: 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',
iconName: 'fortmaticIcon.png', iconURL: 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',
iconName: 'portisIcon.png', iconURL: PORTIS_ICON_URL,
description: 'Login using Portis hosted wallet', description: 'Login using Portis hosted wallet',
href: null, href: null,
color: '#4A6C9B', color: '#4A6C9B',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment