diff options
author | 2018-12-08 23:42:04 +0100 | |
---|---|---|
committer | 2018-12-08 23:42:04 +0100 | |
commit | ac17de796b9a160099163398c548fb0a53b04577 (patch) | |
tree | 2b0cb0ca7e252a30869e571e23a712a6ebb21594 /src/components | |
parent | Polish webview error handler (diff) | |
download | ferdium-app-ac17de796b9a160099163398c548fb0a53b04577.tar.gz ferdium-app-ac17de796b9a160099163398c548fb0a53b04577.tar.zst ferdium-app-ac17de796b9a160099163398c548fb0a53b04577.zip |
Fix linting issues
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/ui/AppLoader/index.js | 2 | ||||
-rw-r--r-- | src/components/ui/WebviewLoader/index.js | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/components/ui/AppLoader/index.js b/src/components/ui/AppLoader/index.js index 61f97d4f9..31db3d52c 100644 --- a/src/components/ui/AppLoader/index.js +++ b/src/components/ui/AppLoader/index.js | |||
@@ -53,7 +53,7 @@ export default @injectSheet(styles) class AppLoader extends Component { | |||
53 | > | 53 | > |
54 | {textList.map((text, i) => ( | 54 | {textList.map((text, i) => ( |
55 | <span | 55 | <span |
56 | key={i} | 56 | key={text} |
57 | className={classnames({ | 57 | className={classnames({ |
58 | [`${classes.slogan}`]: true, | 58 | [`${classes.slogan}`]: true, |
59 | [`${classes.visible}`]: step === i, | 59 | [`${classes.visible}`]: step === i, |
diff --git a/src/components/ui/WebviewLoader/index.js b/src/components/ui/WebviewLoader/index.js index eff4dc3d7..950312bbb 100644 --- a/src/components/ui/WebviewLoader/index.js +++ b/src/components/ui/WebviewLoader/index.js | |||
@@ -1,9 +1,16 @@ | |||
1 | import React from 'react'; | 1 | import React from 'react'; |
2 | import PropTypes from 'prop-types'; | ||
2 | 3 | ||
3 | import FullscreenLoader from '../FullscreenLoader'; | 4 | import FullscreenLoader from '../FullscreenLoader'; |
4 | 5 | ||
5 | export default ({ name }) => ( | 6 | const WebviewLoader = ({ name }) => ( |
6 | <FullscreenLoader | 7 | <FullscreenLoader |
7 | title={`Loading ${name}`} | 8 | title={`Loading ${name}`} |
8 | /> | 9 | /> |
9 | ); | 10 | ); |
11 | |||
12 | WebviewLoader.propTypes = { | ||
13 | name: PropTypes.string.isRequired, | ||
14 | }; | ||
15 | |||
16 | export default WebviewLoader; | ||