diff options
author | 2022-11-20 17:35:21 +0530 | |
---|---|---|
committer | 2022-11-20 17:35:21 +0530 | |
commit | 86f9ab693dcad951271f727046214b03d91ebd69 (patch) | |
tree | 3d32ff4814b5484495b811c5fe0ebea4805f4e55 /src/components/ui/FullscreenLoader/index.js | |
parent | 6.2.1-nightly.47 [skip ci] (diff) | |
download | ferdium-app-86f9ab693dcad951271f727046214b03d91ebd69.tar.gz ferdium-app-86f9ab693dcad951271f727046214b03d91ebd69.tar.zst ferdium-app-86f9ab693dcad951271f727046214b03d91ebd69.zip |
Transform Todo feature, ServiceBarTargetUrl, ServiceIcon, TeamDashboard, Slider, Loader & WorkspaceSwitchningIndicator into ts (#782)
Diffstat (limited to 'src/components/ui/FullscreenLoader/index.js')
-rw-r--r-- | src/components/ui/FullscreenLoader/index.js | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/components/ui/FullscreenLoader/index.js b/src/components/ui/FullscreenLoader/index.js deleted file mode 100644 index f8c6b92ee..000000000 --- a/src/components/ui/FullscreenLoader/index.js +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | import { Component } from 'react'; | ||
2 | import PropTypes from 'prop-types'; | ||
3 | import { observer } from 'mobx-react'; | ||
4 | import injectStyle from 'react-jss'; | ||
5 | import classnames from 'classnames'; | ||
6 | |||
7 | import Loader from '../Loader'; | ||
8 | |||
9 | import styles from './styles'; | ||
10 | import { H1 } from '../headline'; | ||
11 | |||
12 | class FullscreenLoader extends Component { | ||
13 | static propTypes = { | ||
14 | className: PropTypes.string, | ||
15 | title: PropTypes.string, | ||
16 | classes: PropTypes.object.isRequired, | ||
17 | theme: PropTypes.object.isRequired, | ||
18 | spinnerColor: PropTypes.string, | ||
19 | children: PropTypes.node, | ||
20 | }; | ||
21 | |||
22 | static defaultProps = { | ||
23 | className: null, | ||
24 | spinnerColor: null, | ||
25 | children: null, | ||
26 | title: null, | ||
27 | }; | ||
28 | |||
29 | render() { | ||
30 | const { classes, title, children, spinnerColor, className, theme } = | ||
31 | this.props; | ||
32 | |||
33 | return ( | ||
34 | <div className={classes.wrapper}> | ||
35 | <div | ||
36 | className={classnames({ | ||
37 | [`${classes.component}`]: true, | ||
38 | [`${className}`]: className, | ||
39 | })} | ||
40 | > | ||
41 | <H1 className={classes.title}>{title}</H1> | ||
42 | <Loader color={spinnerColor || theme.colorFullscreenLoaderSpinner} /> | ||
43 | {children && <div className={classes.content}>{children}</div>} | ||
44 | </div> | ||
45 | </div> | ||
46 | ); | ||
47 | } | ||
48 | } | ||
49 | |||
50 | export default injectStyle(styles, { injectTheme: true })( | ||
51 | observer(FullscreenLoader), | ||
52 | ); | ||