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