Minor fixes based on lgtm.com alerts (#6819)

* Remove a couple of superfluous trailing arguments

* Simplify assignment logic in a couple of places

* Modify some potentially inconsistent setState calls to use the function form

* Fix eslint errors
Этот коммит содержится в:
Alex Ford
2017-07-07 18:29:32 +01:00
коммит произвёл Joram Wilander
родитель e6ca2974cd
Коммит b03b9d7362
8 изменённых файлов: 20 добавлений и 17 удалений

Просмотреть файл

@@ -157,7 +157,9 @@ export default class Textbox extends React.Component {
showPreview(e) {
e.preventDefault();
e.target.blur();
this.setState({preview: !this.state.preview});
this.setState((prevState) => {
return {preview: prevState.preview};
});
}
hidePreview() {