|
|
@ -3,7 +3,6 @@ const h = require('react-hyperscript') |
|
|
|
const PropTypes = require('prop-types') |
|
|
|
const PropTypes = require('prop-types') |
|
|
|
const { connect } = require('react-redux') |
|
|
|
const { connect } = require('react-redux') |
|
|
|
const NetworkDropdownIcon = require('./dropdowns/components/network-dropdown-icon') |
|
|
|
const NetworkDropdownIcon = require('./dropdowns/components/network-dropdown-icon') |
|
|
|
const t = require('../../i18n') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const networkToColorHash = { |
|
|
|
const networkToColorHash = { |
|
|
|
1: '#038789', |
|
|
|
1: '#038789', |
|
|
@ -31,7 +30,7 @@ class NetworkDisplay extends Component { |
|
|
|
const { provider: { type } } = this.props |
|
|
|
const { provider: { type } } = this.props |
|
|
|
return h('.network-display__container', [ |
|
|
|
return h('.network-display__container', [ |
|
|
|
this.renderNetworkIcon(), |
|
|
|
this.renderNetworkIcon(), |
|
|
|
h('.network-name', t(type)), |
|
|
|
h('.network-name', this.props.t(type)), |
|
|
|
]) |
|
|
|
]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|