mirror of
https://github.com/trezor/trezor-wallet
synced 2025-07-16 11:38:19 +00:00

- 'CoinLogo' is now 'CoinName' - 'CoinLink' is now 'AsideRowCoin' - 'ExternalCoinLink' is now 'AsideRowCoinExternal' - 'WalletCoinLink' is now 'AsideRowCoinWallet'
25 lines
539 B
JavaScript
25 lines
539 B
JavaScript
import styled from 'styled-components';
|
|
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { NavLink } from 'react-router-dom';
|
|
|
|
import { coinProp } from './common';
|
|
import AsideRowCoin from './AsideRowCoin';
|
|
|
|
const Wrapper = styled(NavLink)`
|
|
display: block;
|
|
`;
|
|
|
|
const AsideRowCoinWallet = ({ coin, url }) => (
|
|
<Wrapper to={url}>
|
|
<AsideRowCoin coin={coin}/>
|
|
</Wrapper>
|
|
);
|
|
|
|
AsideRowCoinWallet.propTypes = {
|
|
...coinProp,
|
|
url: PropTypes.string.isRequired,
|
|
};
|
|
|
|
export default AsideRowCoinWallet;
|