diff options
Diffstat (limited to 'webapp/components/status_icon.jsx')
-rw-r--r-- | webapp/components/status_icon.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/status_icon.jsx b/webapp/components/status_icon.jsx index 3e71344d9..cf5ef6947 100644 --- a/webapp/components/status_icon.jsx +++ b/webapp/components/status_icon.jsx @@ -33,7 +33,7 @@ export default class StatusIcon extends React.Component { return ( <span - className='status' + className={'status ' + this.props.className} dangerouslySetInnerHTML={{__html: statusIcon}} /> ); @@ -41,7 +41,12 @@ export default class StatusIcon extends React.Component { } +StatusIcon.defaultProps = { + className: '' +}; + StatusIcon.propTypes = { status: React.PropTypes.string, + className: React.PropTypes.string, type: React.PropTypes.string }; |