From 597f804a9deb0899c789835793922dc0dd053bb2 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Mon, 17 Dec 2018 12:52:19 +0100 Subject: [PATCH] added prop to enable rendering Logo without wrapper --- src/components/images/CoinLogo/index.js | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/components/images/CoinLogo/index.js b/src/components/images/CoinLogo/index.js index c8d99920..ae03c897 100644 --- a/src/components/images/CoinLogo/index.js +++ b/src/components/images/CoinLogo/index.js @@ -28,13 +28,23 @@ class CoinLogo extends PureComponent { } render() { - const { network, className } = this.props; + const { network, className, standalone } = this.props; + + const logo = ( + + ); + + if (standalone) { + return logo; + } + return ( - + {logo} ); } @@ -43,6 +53,7 @@ class CoinLogo extends PureComponent { CoinLogo.propTypes = { network: PropTypes.string, className: PropTypes.string, + standalone: PropTypes.bool, }; export default CoinLogo;