Add ESLint rule (object-curly-spacing) (#3498)
This commit is contained in:
parent
cb7ee4698f
commit
fda5c699c2
9 changed files with 19 additions and 16 deletions
|
@ -22,11 +22,11 @@ class ImageLoader extends React.PureComponent {
|
|||
|
||||
loadImage(src) {
|
||||
const image = new Image();
|
||||
image.onerror = () => this.setState({loading: false, error: true});
|
||||
image.onload = () => this.setState({loading: false, error: false});
|
||||
image.onerror = () => this.setState({ loading: false, error: true });
|
||||
image.onload = () => this.setState({ loading: false, error: false });
|
||||
image.src = src;
|
||||
this.lastSrc = src;
|
||||
this.setState({loading: true});
|
||||
this.setState({ loading: true });
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue