diff --git a/src/components/SocialShareButton.tsx b/src/components/SocialShareButton.tsx index 31b95dc..1cb8721 100644 --- a/src/components/SocialShareButton.tsx +++ b/src/components/SocialShareButton.tsx @@ -118,18 +118,27 @@ export default class SocialShareButton extends Component< }; render() { - const { children, forwardedRef, networkName, style, ...rest } = this.props; - - const newStyle = { - backgroundColor: 'transparent', - border: 'none', - padding: 0, - font: 'inherit', - color: 'inherit', - cursor: 'pointer', - outline: 'none', - ...style, - }; + const { + children, + forwardedRef, + networkName, + style, + resetButtonStyle, + ...rest + } = this.props; + + const newStyle = resetButtonStyle + ? { + backgroundColor: 'transparent', + border: 'none', + padding: 0, + font: 'inherit', + color: 'inherit', + cursor: 'pointer', + outline: 'none', + ...style, + } + : style; return (