1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 09:18:09 +00:00

Put back urls

This commit is contained in:
Vladimir Volek 2018-10-04 14:57:53 +02:00 committed by Szymon Lesisz
parent fdfd368bac
commit 8d9d459553
2 changed files with 7 additions and 5 deletions

View File

@ -2,25 +2,31 @@ export default [
{ {
id: 'btc', id: 'btc',
coinName: 'Bitcoin', coinName: 'Bitcoin',
url: 'https://wallet.trezor.io/#/coin/btc',
}, },
{ {
id: 'ltc', id: 'ltc',
coinName: 'Litecoin', coinName: 'Litecoin',
url: 'https://wallet.trezor.io/#/coin/ltc',
}, },
{ {
id: 'bch', id: 'bch',
coinName: 'Bitcoin Cash', coinName: 'Bitcoin Cash',
url: 'https://wallet.trezor.io/#/coin/bch',
}, },
{ {
id: 'btg', id: 'btg',
coinName: 'Bitcoin Gold', coinName: 'Bitcoin Gold',
url: 'https://wallet.trezor.io/#/coin/btg',
}, },
{ {
id: 'dash', id: 'dash',
coinName: 'Dash', coinName: 'Dash',
url: 'https://wallet.trezor.io/#/coin/dash',
}, },
{ {
id: 'zec', id: 'zec',
coinName: 'Zcash', coinName: 'Zcash',
url: 'https://wallet.trezor.io/#/coin/zec',
}, },
]; ];

View File

@ -24,10 +24,6 @@ class CoinMenu extends Component {
return baseUrl; return baseUrl;
} }
getCoinUrl(coinId) {
return `https://wallet.trezor.io/#/coin/${coinId}`;
}
render() { render() {
const { config } = this.props.localStorage; const { config } = this.props.localStorage;
return ( return (
@ -51,7 +47,7 @@ class CoinMenu extends Component {
hasBorder hasBorder
/> />
{coins.map(coin => ( {coins.map(coin => (
<a key={this.getCoinUrl(coin.id)} href={this.getCoinUrl(coin.id)}> <a key={this.getCoinUrl(coin.id)} href={coin.url}>
<RowCoin <RowCoin
coin={{ coin={{
name: coin.coinName, name: coin.coinName,