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 { export interface IMasterState {
/** /**
* Loding will be appeared if it's true * Loding will be appeared if it's true
* *
* @type {Boolean} * @type {Boolean}
* @memberof IMasterState * @memberof IMasterState
*/ */
loading: Boolean, loading: Boolean,
/** /**
* It's true if user is authorized * It's true if user is authorized
* *
* @type {Boolean} * @type {Boolean}
* @memberof IMasterState * @memberof IMasterState
*/ */
authed:Boolean authed: Boolean
/** /**
* It's true if all default data loaded from database * It's true if all default data loaded from database
* *
* @type {Boolean} * @type {Boolean}
* @memberof IMasterState * @memberof IMasterState
*/ */
dataLoaded:Boolean dataLoaded: Boolean
} }

View File

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