|
|
@ -24,16 +24,6 @@ class CoinMenu extends Component {
|
|
|
|
return baseUrl;
|
|
|
|
return baseUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
getImgUrl(network) {
|
|
|
|
|
|
|
|
let imgName = network;
|
|
|
|
|
|
|
|
if (network === 'ethereum') {
|
|
|
|
|
|
|
|
imgName = 'eth';
|
|
|
|
|
|
|
|
} else if (network === 'ethereum-classic') {
|
|
|
|
|
|
|
|
imgName = 'etc';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return `../images/${imgName}-logo.png`;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const { config } = this.props.localStorage;
|
|
|
|
const { config } = this.props.localStorage;
|
|
|
|
return (
|
|
|
|
return (
|
|
|
@ -45,8 +35,8 @@ class CoinMenu extends Component {
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<RowCoin
|
|
|
|
<RowCoin
|
|
|
|
coin={{
|
|
|
|
coin={{
|
|
|
|
img: this.getImgUrl(item.network),
|
|
|
|
|
|
|
|
name: item.name,
|
|
|
|
name: item.name,
|
|
|
|
|
|
|
|
network: item.network,
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</NavLink>
|
|
|
|
</NavLink>
|
|
|
@ -61,8 +51,8 @@ class CoinMenu extends Component {
|
|
|
|
<a key={coin.url} href={coin.url}>
|
|
|
|
<a key={coin.url} href={coin.url}>
|
|
|
|
<RowCoin
|
|
|
|
<RowCoin
|
|
|
|
coin={{
|
|
|
|
coin={{
|
|
|
|
img: coin.image,
|
|
|
|
|
|
|
|
name: coin.coinName,
|
|
|
|
name: coin.coinName,
|
|
|
|
|
|
|
|
img: coin.image,
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
iconRight={{
|
|
|
|
iconRight={{
|
|
|
|
type: ICONS.SKIP,
|
|
|
|
type: ICONS.SKIP,
|
|
|
|