1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-30 19:00:53 +00:00

pass className prop to enable component styling

This commit is contained in:
slowbackspace 2018-12-14 18:59:29 +01:00
parent ddf85952fc
commit 57ad70cd60

View File

@ -28,9 +28,9 @@ class CoinLogo extends PureComponent {
} }
render() { render() {
const { network } = this.props; const { network, className } = this.props;
return ( return (
<Wrapper> <Wrapper className={className}>
<Logo <Logo
hasLongIcon={this.hasLongIcon(network)} hasLongIcon={this.hasLongIcon(network)}
src={require(`./images/${network}.png`)} // eslint-disable-line src={require(`./images/${network}.png`)} // eslint-disable-line
@ -42,6 +42,7 @@ class CoinLogo extends PureComponent {
CoinLogo.propTypes = { CoinLogo.propTypes = {
network: PropTypes.string, network: PropTypes.string,
className: PropTypes.string,
}; };
export default CoinLogo; export default CoinLogo;