Skip to content

Commit

Permalink
fix: final adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
anninowak committed Oct 16, 2024
1 parent 19240eb commit 3d33871
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { createReducer, on } from '@ngrx/store'
import { OneCxActions } from './onecx-actions'
import { OneCxState } from './onecx-state'
import { PayloadNavigatedEvent } from '@onecx/integration-interface'
import { NavigatedEventPayload } from '@onecx/integration-interface'

export const oneCxReducer = createReducer<OneCxState>(
{},
on(
OneCxActions.navigated,
(state: OneCxState, action): OneCxState => ({
...state,
location: action.event as PayloadNavigatedEvent,
location: action.event as NavigatedEventPayload,
})
)
)
4 changes: 2 additions & 2 deletions libs/ngrx-accelerator/src/lib/store-connector/onecx-state.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PayloadNavigatedEvent } from '@onecx/integration-interface'
import { NavigatedEventPayload } from '@onecx/integration-interface'

export type LocationState = PayloadNavigatedEvent
export type LocationState = NavigatedEventPayload
export interface OneCxState {
location?: LocationState | undefined
}

0 comments on commit 3d33871

Please sign in to comment.