1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-29 02:18:06 +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() {
const { network } = this.props;
const { network, className } = this.props;
return (
<Wrapper>
<Wrapper className={className}>
<Logo
hasLongIcon={this.hasLongIcon(network)}
src={require(`./images/${network}.png`)} // eslint-disable-line
@ -42,6 +42,7 @@ class CoinLogo extends PureComponent {
CoinLogo.propTypes = {
network: PropTypes.string,
className: PropTypes.string,
};
export default CoinLogo;