Migrate store to tsx file

This commit is contained in:
Qolzam
2017-10-07 11:12:07 +07:00
parent 61c230e79e
commit 418453dd02
5 changed files with 23 additions and 28 deletions

View File

@@ -1,16 +1,16 @@
// - Import firebase components
import {firebaseAuth, firebaseRef} from 'app/firebase/'
import store from 'configureStore'
import {firebaseAuth, firebaseRef} from 'app/firebase/';
import store from 'store/configureStore';
// - Check user if is authorized
export var isAuthorized = () => {
var state = store.getState()
return state.authorize.authed
var state = store.getState();
return state.authorize.authed;
}
};
export var isAdmin = () =>{
return true;
}
};