Skip to content

Commit

Permalink
Remove name at the comment input.
Browse files Browse the repository at this point in the history
Fixes #6.
  • Loading branch information
arunoda committed Oct 7, 2016
1 parent 68031ac commit 397a4bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
13 changes: 0 additions & 13 deletions src/manager/components/CommentForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ export default class CommentForm extends Component {
this.onSubmit = this.onSubmit.bind(this);
}

getUsername() {
const { user, users } = this.props;
if (user) {
return user.name;
}
return '...';
}

onChange(e) {
const text = e.target.value;
this.setState({ text });
Expand All @@ -45,11 +37,6 @@ export default class CommentForm extends Component {
const { text } = this.state;
return (
<div style={style.wrapper}>
<button
style={style.loginButton}
onClick={this.onLogin}
>{this.getUsername()}
</button>
<input
style={style.input}
onChange={this.onChange}
Expand Down
5 changes: 3 additions & 2 deletions src/manager/components/CommentForm/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ export default {
border: 'none',
outline: 'none',
padding: '7px 15px',
fontSize: 12,
lineHeight: 1,
fontSize: 13,
lineHeight: 1.7,
color: 'rgba(0, 0, 0, 0.8)',
fontFamily: 'sans-serif',
},
}

0 comments on commit 397a4bb

Please sign in to comment.