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/AppLoader | |
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/AppLoader')
-rw-r--r-- | src/components/ui/AppLoader/index.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/components/ui/AppLoader/index.js b/src/components/ui/AppLoader/index.js index bbfd5de28..fa4a719ab 100644 --- a/src/components/ui/AppLoader/index.js +++ b/src/components/ui/AppLoader/index.js | |||
@@ -19,7 +19,9 @@ const textList = shuffleArray([ | |||
19 | 'Fixing bugs', | 19 | 'Fixing bugs', |
20 | ]); | 20 | ]); |
21 | 21 | ||
22 | export default @injectSheet(styles) @withTheme class AppLoader extends Component { | 22 | @injectSheet(styles) |
23 | @withTheme | ||
24 | class AppLoader extends Component { | ||
23 | static propTypes = { | 25 | static propTypes = { |
24 | classes: PropTypes.object.isRequired, | 26 | classes: PropTypes.object.isRequired, |
25 | theme: PropTypes.object.isRequired, | 27 | theme: PropTypes.object.isRequired, |
@@ -28,7 +30,7 @@ export default @injectSheet(styles) @withTheme class AppLoader extends Component | |||
28 | 30 | ||
29 | static defaultProps = { | 31 | static defaultProps = { |
30 | texts: textList, | 32 | texts: textList, |
31 | } | 33 | }; |
32 | 34 | ||
33 | state = { | 35 | state = { |
34 | step: 0, | 36 | step: 0, |
@@ -38,7 +40,7 @@ export default @injectSheet(styles) @withTheme class AppLoader extends Component | |||
38 | 40 | ||
39 | componentDidMount() { | 41 | componentDidMount() { |
40 | this.interval = setInterval(() => { | 42 | this.interval = setInterval(() => { |
41 | this.setState((prevState) => ({ | 43 | this.setState(prevState => ({ |
42 | step: prevState.step === textList.length - 1 ? 0 : prevState.step + 1, | 44 | step: prevState.step === textList.length - 1 ? 0 : prevState.step + 1, |
43 | })); | 45 | })); |
44 | }, 2500); | 46 | }, 2500); |
@@ -73,3 +75,5 @@ export default @injectSheet(styles) @withTheme class AppLoader extends Component | |||
73 | ); | 75 | ); |
74 | } | 76 | } |
75 | } | 77 | } |
78 | |||
79 | export default AppLoader; | ||