Improvment in tslint standard (#16)

This commit is contained in:
Qolzam
2017-10-10 16:39:02 +07:00
parent 181d2b8abd
commit 1937742f04
160 changed files with 984 additions and 1019 deletions

View File

@@ -11,21 +11,21 @@ import * as commentActions from 'commentActions'
// - Define variable
const buttonStyle = {
marginTop: '5px'
};
}
// - Create CommentWrite component class
export class CommentWrite extends Component {
constructor(props) {
super(props);
super(props)
this.state = {
inputValue:''
}
// Binding functions to `this`
this.handleRef = this.handleRef.bind(this);
this.focus = this.focus.bind(this);
this.handleAddComment = this.handleAddComment.bind(this);
this.handleRef = this.handleRef.bind(this)
this.focus = this.focus.bind(this)
this.handleAddComment = this.handleAddComment.bind(this)
this.handleOnChange = this.handleOnChange.bind(this)
}
@@ -56,7 +56,7 @@ export class CommentWrite extends Component {
<Button basic style={buttonStyle} onClick={this.handleAddComment} color='teal'>Add Comment</Button>
</div>
);
)
}
}