From 3b86ae548704d4f799b5c18b29c53ff800a1e6ce Mon Sep 17 00:00:00 2001 From: "( Nechiforel David-Samuel ) NsdHSO" Date: Mon, 9 Oct 2023 13:56:21 +0300 Subject: [PATCH] =?UTF-8?q?chore:=F0=9F=8C=BB=20optimize=20import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/app.config.ts | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 56b491b..e744df7 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -7,26 +7,21 @@ import { import { provideEffects } from '@ngrx/effects'; import { provideState, provideStore } from '@ngrx/store'; import { provideStoreDevtools } from '@ngrx/store-devtools'; -import * as fromStepper from './../../ftx-sivan-shared/src'; -import * as fromReserve from './../../ftx-sivan-shared/src'; -import * as fromInfoUser from './../../ftx-sivan-shared/src'; -import { - InfoUserEffects, - ReserveEffects, - StepperEffects, -} from 'ngx-ftx-shared'; +import * as fromShared from 'ngx-ftx-shared'; import { IconCoreModule } from 'ngx-liburg-icon'; import { appRoutes } from './app.routes'; +const { InfoUserEffects, ReserveEffects, StepperEffects, ...storeExports } = + fromShared; export const appConfig: ApplicationConfig = { providers: [ provideEffects(InfoUserEffects), - provideState(fromInfoUser.INFO_USER_FEATURE_KEY, fromInfoUser.infoReducer), + provideState(storeExports.INFO_USER_FEATURE_KEY, storeExports.infoReducer), provideEffects(ReserveEffects), - provideState(fromReserve.RESERVE_FEATURE_KEY, fromReserve.reserveReducer), + provideState(storeExports.RESERVE_FEATURE_KEY, storeExports.reserveReducer), provideEffects(StepperEffects), provideStore(), - provideState(fromStepper.STEPPER_FEATURE_KEY, fromStepper.stepperReducer), + provideState(storeExports.STEPPER_FEATURE_KEY, storeExports.stepperReducer), provideStoreDevtools({ maxAge: 25 }), provideRouter(appRoutes, withEnabledBlockingInitialNavigation()), importProvidersFrom(IconCoreModule),