From b61fa5e1f2e2cd44b5f33a4b809a570cd0da2ad4 Mon Sep 17 00:00:00 2001 From: "Ian J. Miller" Date: Thu, 16 Nov 2017 14:36:59 -0600 Subject: [PATCH] fix undefined className --- src/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 2f30577..67c4020 100644 --- a/src/index.js +++ b/src/index.js @@ -32,7 +32,7 @@ class FeatherIcon extends Component { * the sizes are relative based on the viewBox attribute. * our width and height variables will scale the SVG accordingly. * is just a wrapper it does nothing except let me use valid JSX markup - * these are all based on generated icons.json from feathericons lib + * these are all based on generated icons.json from feathericons lib */ if (icon === 'activity') { return ( @@ -1548,12 +1548,14 @@ class FeatherIcon extends Component { FeatherIcon.propTypes = { icon: PropTypes.string.isRequired, - size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) + size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + className: PropTypes.string } FeatherIcon.defaultProps = { color: 'currentColor', - size: 24 + size: 24, + className: '' } export default FeatherIcon;