mirror of https://github.com/trezor/trezor-wallet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
692 B
30 lines
692 B
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { NavLink } from 'react-router-dom';
|
|
|
|
import AsideRow from './AsideRow';
|
|
import AsideRowCoin from './AsideRowCoin';
|
|
import CoinName from './CoinName';
|
|
|
|
import { coinProp } from './common';
|
|
|
|
const AsideRowCoinWallet = ({ coin, url }) => (
|
|
<NavLink to={url}>
|
|
<AsideRowCoin>
|
|
<AsideRow>
|
|
<CoinName
|
|
coinImg={coin.img}
|
|
text={coin.name}
|
|
/>
|
|
</AsideRow>
|
|
</AsideRowCoin>
|
|
</NavLink>
|
|
);
|
|
|
|
AsideRowCoinWallet.propTypes = {
|
|
...coinProp,
|
|
url: PropTypes.string.isRequired,
|
|
};
|
|
|
|
export default AsideRowCoinWallet;
|