diff options
Diffstat (limited to 'src/components/ui/AppLoader/index.tsx')
-rw-r--r-- | src/components/ui/AppLoader/index.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/ui/AppLoader/index.tsx b/src/components/ui/AppLoader/index.tsx index c7c290a57..0bb9cb50f 100644 --- a/src/components/ui/AppLoader/index.tsx +++ b/src/components/ui/AppLoader/index.tsx | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component } from 'react'; | 1 | import { Component } from 'react'; |
2 | import injectSheet, { withTheme } from 'react-jss'; | ||
3 | import classnames from 'classnames'; | 2 | import classnames from 'classnames'; |
4 | 3 | ||
4 | import injectStyle from 'react-jss'; | ||
5 | import FullscreenLoader from '../FullscreenLoader'; | 5 | import FullscreenLoader from '../FullscreenLoader'; |
6 | import { shuffleArray } from '../../../helpers/array-helpers'; | 6 | import { shuffleArray } from '../../../helpers/array-helpers'; |
7 | 7 | ||
@@ -24,8 +24,6 @@ type Props = { | |||
24 | texts: string[]; | 24 | texts: string[]; |
25 | }; | 25 | }; |
26 | 26 | ||
27 | @injectSheet(styles) | ||
28 | @withTheme | ||
29 | class AppLoader extends Component<Props> { | 27 | class AppLoader extends Component<Props> { |
30 | static defaultProps = { | 28 | static defaultProps = { |
31 | texts: textList, | 29 | texts: textList, |
@@ -77,4 +75,4 @@ class AppLoader extends Component<Props> { | |||
77 | } | 75 | } |
78 | } | 76 | } |
79 | 77 | ||
80 | export default AppLoader; | 78 | export default injectStyle(styles, { injectTheme: true })(AppLoader); |