From e3975b5051e0ba7fbc77e65afb82d72a45b06546 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Sat, 8 Dec 2018 23:43:52 +0100 Subject: Make spinner work in lightMode --- src/components/ui/FullscreenLoader/index.js | 36 +++++++++++++++-------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/components/ui/FullscreenLoader/index.js b/src/components/ui/FullscreenLoader/index.js index bff5189c5..145c15c2d 100644 --- a/src/components/ui/FullscreenLoader/index.js +++ b/src/components/ui/FullscreenLoader/index.js @@ -1,26 +1,28 @@ import React from 'react'; import injectSheet from 'react-jss'; import classnames from 'classnames'; +import { inject } from 'mobx-react'; import Loader from '../Loader'; import styles from './styles'; -export default injectSheet(styles)(({ classes, className, title, children }) => ( -
-
-

{title}

- - {children && ( -
- {children} -
- )} +export default inject('stores')(injectSheet(styles)(({ stores, classes, className, title, children }) => ( +
+
+

{title}

+ + {children && ( +
+ {children} +
+ )} +
-
-)); + ) + )); -- cgit v1.2.3-70-g09d2