Make Master component cleaner

This commit is contained in:
Qolzam
2017-10-21 10:56:57 +07:00
parent 833106ad8d
commit 736023709b
2 changed files with 18 additions and 16 deletions

View File

@@ -2,23 +2,23 @@
export interface IMasterState {
/**
* Loding will be appeared if it's true
*
*
* @type {Boolean}
* @memberof IMasterState
*/
loading: Boolean,
loading: Boolean,
/**
* It's true if user is authorized
*
*
* @type {Boolean}
* @memberof IMasterState
*/
authed:Boolean
authed: Boolean
/**
* It's true if all default data loaded from database
*
*
* @type {Boolean}
* @memberof IMasterState
*/
dataLoaded:Boolean
}
dataLoaded: Boolean
}

View File

@@ -21,15 +21,17 @@ import { IMasterState } from './IMasterState'
import { PrivateRoute, PublicRoute } from 'api/AuthRouterAPI'
// - Import actions
import * as authorizeActions from 'actions/authorizeActions'
import * as imageGalleryActions from 'actions/imageGalleryActions'
import * as postActions from 'actions/postActions'
import * as commentActions from 'actions/commentActions'
import * as voteActions from 'actions/voteActions'
import * as userActions from 'actions/userActions'
import * as globalActions from 'actions/globalActions'
import * as circleActions from 'actions/circleActions'
import * as notifyActions from 'actions/notifyActions'
import {
authorizeActions,
imageGalleryActions,
postActions,
commentActions,
voteActions,
userActions,
globalActions,
circleActions,
notifyActions
} from 'actions'
/* ------------------------------------ */