thinkful-ui
Advanced tools
Comparing version 0.2.6 to 0.2.7
{ | ||
"name": "thinkful-ui", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Shared navigation and UI resources for Thinkful.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.es6", |
@@ -13,9 +13,11 @@ const React = require('react'); | ||
email: React.PropTypes.string.isRequired, | ||
style: React.PropTypes.string, | ||
size: React.PropTypes.number | ||
default: React.PropTypes.string, | ||
size: React.PropTypes.number, | ||
style: React.PropTypes.object | ||
} | ||
static defaultProps = { | ||
style: 'retro', | ||
size: 200 | ||
default: 'retro', | ||
size: 200, | ||
style: {} | ||
} | ||
@@ -26,6 +28,7 @@ | ||
className={`gravatar ${this.props.className || ''}`} | ||
src={`${URL}/${MD5.hash(this.props.email)}?d=${this.props.style}&s=${this.props.size}`}/> | ||
src={`${URL}/${MD5.hash(this.props.email)}?d=${this.props.default}&s=${this.props.size}`} | ||
style={this.props.style || {}}/> | ||
} | ||
} | ||
export {Gravatar}; | ||
export {Gravatar}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33784
372