react-useravatar
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -27,3 +27,3 @@ 'use strict'; | ||
* @url https://github.com/bltnico/react-user-avatar | ||
* @version 1.0.2 | ||
* @version 1.0.3 | ||
* | ||
@@ -59,2 +59,3 @@ * @example | ||
_this.initState(); | ||
return _this; | ||
@@ -64,4 +65,4 @@ } | ||
_createClass(UserAvatar, [{ | ||
key: 'componentDidMount', | ||
value: function componentDidMount() { | ||
key: 'initState', | ||
value: function initState() { | ||
this.setState({ | ||
@@ -154,3 +155,3 @@ color: this.intToRGB(this.hashCode(this.props.username)), | ||
textAlign: 'center', | ||
lineHeight: this.props.size | ||
lineHeight: this.props.size + "px" | ||
}, | ||
@@ -157,0 +158,0 @@ text: { |
{ | ||
"name": "react-useravatar", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,3 @@ 'use strict'; | ||
* @url https://github.com/bltnico/react-user-avatar | ||
* @version 1.0.2 | ||
* @version 1.0.3 | ||
* | ||
@@ -38,5 +38,6 @@ * @example | ||
this.initState(); | ||
} | ||
componentDidMount() { | ||
initState() { | ||
this.setState({ | ||
@@ -114,3 +115,3 @@ color : this.intToRGB(this.hashCode(this.props.username)), | ||
textAlign : 'center', | ||
lineHeight : this.props.size | ||
lineHeight : this.props.size + "px" | ||
}, | ||
@@ -117,0 +118,0 @@ text : { |
10221
299