chore: eslint fix

This commit is contained in:
endiliey 2018-08-08 00:39:40 +08:00
parent 9e7729ad74
commit 2a7f7e2663
2 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,7 @@ import React from 'react';
export default class Layout extends React.Component { export default class Layout extends React.Component {
render() { render() {
return <div>{this.props.children}</div>; const {children} = this.props;
return <div>{children}</div>;
} }
} }

View file

@ -7,7 +7,7 @@ export default class NotFound extends React.Component {
<Layout> <Layout>
<div>404 Page Not Found</div> <div>404 Page Not Found</div>
<div> <div>
<img src="https://i.imgur.com/yG7L3Lb.gif" /> <img alt="Not found" src="https://i.imgur.com/yG7L3Lb.gif" />
</div> </div>
</Layout> </Layout>
); );