From 736023709bd0be0283d22e4a97ed6fd418cd2cb6 Mon Sep 17 00:00:00 2001 From: Qolzam Date: Sat, 21 Oct 2017 10:56:57 +0700 Subject: [PATCH] Make Master component cleaner --- app/components/Master/IMasterState.ts | 14 +++++++------- app/components/Master/Master.tsx | 20 +++++++++++--------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/app/components/Master/IMasterState.ts b/app/components/Master/IMasterState.ts index e5543c9..b9c2546 100644 --- a/app/components/Master/IMasterState.ts +++ b/app/components/Master/IMasterState.ts @@ -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 - } \ No newline at end of file + dataLoaded: Boolean +} diff --git a/app/components/Master/Master.tsx b/app/components/Master/Master.tsx index 1fbac03..fb794e5 100644 --- a/app/components/Master/Master.tsx +++ b/app/components/Master/Master.tsx @@ -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' /* ------------------------------------ */