Remove xDai from the list of supported chains

This commit is contained in:
Vadim 2020-04-15 11:13:27 +03:00
parent cae6121305
commit bd93bf8501
4 changed files with 7 additions and 12 deletions

View File

@ -1,5 +1,5 @@
import React from 'react'
import xDaiLogo from './xdai.svg'
//import xDaiLogo from './xdai.svg'
import poaLogo from './core.svg'
import sokolLogo from './sokol.svg'
import kovanLogo from './kovan.svg'
@ -10,7 +10,7 @@ const getLogoSrc = networkBranch => {
core: poaLogo,
sokol: sokolLogo,
kovan: kovanLogo,
dai: xDaiLogo
//dai: xDaiLogo
}[networkBranch] || poaLogo
)
}

View File

@ -2,7 +2,7 @@ import React from 'react'
import { LogoPOA } from '../LogoPOA'
import { LogoSokol } from '../LogoSokol'
import { LogoKovan } from '../LogoKovan'
import { LogoDai } from '../LogoDai'
//import { LogoDai } from '../LogoDai'
export const Logo = ({ href = null, extraClass = '', networkBranch = '' }) => {
switch (networkBranch) {
@ -10,8 +10,8 @@ export const Logo = ({ href = null, extraClass = '', networkBranch = '' }) => {
return <LogoSokol href={href} extraClass={extraClass} />
case 'kovan':
return <LogoKovan href={href} extraClass={extraClass} />
case 'dai':
return <LogoDai href={href} extraClass={extraClass} />
//case 'dai':
// return <LogoDai href={href} extraClass={extraClass} />
case 'poa':
default:
return <LogoPOA href={href} extraClass={extraClass} />

View File

@ -7,7 +7,7 @@ import { IconTwitter } from '../IconTwitter'
const getIconBackgroundColor = networkBranch => {
return (
{
dai: '#e3e7e9',
//dai: '#e3e7e9',
poa: '#fff',
sokol: '#fff',
kovan: '#fff'
@ -18,7 +18,7 @@ const getIconBackgroundColor = networkBranch => {
const getIconColor = networkBranch => {
return (
{
dai: '#333',
//dai: '#333',
poa: '#5c34a2',
sokol: '#6ac9b9',
kovan: '#6ac9b9'

View File

@ -24,11 +24,6 @@ constants.NETWORKS = {
NAME: 'Core',
BRANCH: 'core',
TESTNET: false
},
'100': {
NAME: 'Dai',
BRANCH: 'dai',
TESTNET: false
}
}