diff options
Diffstat (limited to 'src/components/ui/WebviewLoader/index.js')
-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; | ||