Limit usernames to 30 chars, statuses to 500, open account after follow form success

This commit is contained in:
Eugen Rochko
2016-09-25 15:26:56 +02:00
parent 62b384824d
commit e9bc4a4a08
9 changed files with 25 additions and 13 deletions
@@ -3,15 +3,18 @@ import PureRenderMixin from 'react-addons-pure-render-mixin';
const CharacterCounter = React.createClass({
propTypes: {
text: React.PropTypes.string.isRequired
text: React.PropTypes.string.isRequired,
max: React.PropTypes.number.isRequired
},
mixins: [PureRenderMixin],
render () {
const diff = this.props.max - this.props.text.length;
return (
<span style={{ fontSize: '16px', cursor: 'default' }}>
{this.props.text.length}
{diff}
</span>
);
}