Fix lint
Dan committed
Aug 3, 2018 at 13:31 UTC
fa824d092195713bf85d56cbda8bad976bbc1900
2 files changed
+4
-4
fixtures/unstable-async/suspense/src/components/App.js
+1
-1
@@ -1,4 +1,4 @@
1
-import React, {Fragment, Placeholder, PureComponent} from 'react';
1
+import React, {Placeholder, PureComponent} from 'react';
2
import {unstable_deferredUpdates} from 'react-dom';
3
import {createResource} from 'simple-cache-provider';
4
import {cache} from '../cache';
fixtures/unstable-async/suspense/src/components/UserPage.js
+3
-3
@@ -1,4 +1,4 @@
1
-import React, {Fragment, Placeholder} from 'react';
1
+import React, {Placeholder} from 'react';
2
import {createResource} from 'simple-cache-provider';
3
import Spinner from './Spinner';
4
import {cache} from '../cache';
@@ -112,8 +112,8 @@ const ImageResource = createResource(
112
})
113
);
114
115
-function Img({src, ...rest}) {
116
- return <img src={ImageResource.read(cache, src)} {...rest} />;
115
+function Img({src, alt, ...rest}) {
116
+ return <img src={ImageResource.read(cache, src)} alt={alt} {...rest} />;
117
}
118
119
function UserPicture({source}) {