diff options
author | Stefan Malzner <stefan@adlk.io> | 2018-12-08 23:42:04 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2018-12-08 23:42:04 +0100 |
commit | ac17de796b9a160099163398c548fb0a53b04577 (patch) | |
tree | 2b0cb0ca7e252a30869e571e23a712a6ebb21594 /src/components/ui/WebviewLoader | |
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/ui/WebviewLoader')
-rw-r--r-- | src/components/ui/WebviewLoader/index.js | 9 |
1 files changed, 8 insertions, 1 deletions
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; | ||