diff options
author | 2021-09-13 14:45:46 +0200 | |
---|---|---|
committer | 2021-09-13 14:45:46 +0200 | |
commit | 537697a6e9757f118d09d9e76362ba1ff617e2c6 (patch) | |
tree | bc55447115e385137684e84697a8c15d2199b8d5 /src/components/ui/Loader.js | |
parent | Bumped up version to: 5.6.3-nightly.0 [skip ci] (diff) | |
download | ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.gz ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.zst ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.zip |
chore: upgrade intl dependencies (#1920)
Diffstat (limited to 'src/components/ui/Loader.js')
-rw-r--r-- | src/components/ui/Loader.js | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/components/ui/Loader.js b/src/components/ui/Loader.js index 4d7113aa1..46c1390bf 100644 --- a/src/components/ui/Loader.js +++ b/src/components/ui/Loader.js | |||
@@ -5,7 +5,9 @@ import Loader from 'react-loader'; | |||
5 | 5 | ||
6 | import { oneOrManyChildElements } from '../../prop-types'; | 6 | import { oneOrManyChildElements } from '../../prop-types'; |
7 | 7 | ||
8 | export default @inject('stores') @observer class LoaderComponent extends Component { | 8 | @inject('stores') |
9 | @observer | ||
10 | class LoaderComponent extends Component { | ||
9 | static propTypes = { | 11 | static propTypes = { |
10 | children: oneOrManyChildElements, | 12 | children: oneOrManyChildElements, |
11 | loaded: PropTypes.bool, | 13 | loaded: PropTypes.bool, |
@@ -28,13 +30,12 @@ export default @inject('stores') @observer class LoaderComponent extends Compone | |||
28 | }; | 30 | }; |
29 | 31 | ||
30 | render() { | 32 | render() { |
31 | const { | 33 | const { children, loaded, className } = this.props; |
32 | children, | ||
33 | loaded, | ||
34 | className, | ||
35 | } = this.props; | ||
36 | 34 | ||
37 | const color = this.props.color !== 'ACCENT' ? this.props.color : this.props.stores.settings.app.accentColor; | 35 | const color = |
36 | this.props.color !== 'ACCENT' | ||
37 | ? this.props.color | ||
38 | : this.props.stores.settings.app.accentColor; | ||
38 | 39 | ||
39 | return ( | 40 | return ( |
40 | <Loader | 41 | <Loader |
@@ -51,3 +52,5 @@ export default @inject('stores') @observer class LoaderComponent extends Compone | |||
51 | ); | 52 | ); |
52 | } | 53 | } |
53 | } | 54 | } |
55 | |||
56 | export default LoaderComponent; | ||