Make Master component cleaner
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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'
|
||||
|
||||
/* ------------------------------------ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user