X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/01e4b29eb65a760650476a8f5f059413130921f4..77c5d854b58b46395c5db5531268494d40f27786:/src/store/side-panel/side-panel-action.ts diff --git a/src/store/side-panel/side-panel-action.ts b/src/store/side-panel/side-panel-action.ts index ecea3535e3..9e8da28307 100644 --- a/src/store/side-panel/side-panel-action.ts +++ b/src/store/side-panel/side-panel-action.ts @@ -2,14 +2,10 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { default as unionize, ofType, UnionOf } from "unionize"; -import { SidePanelId } from "~/store/side-panel/side-panel-reducer"; +import { Dispatch } from 'redux'; +import { navigateTo } from 'store/navigation/navigation-action'; -export const sidePanelActions = unionize({ - TOGGLE_SIDE_PANEL_ITEM_OPEN: ofType() -}, { - tag: 'type', - value: 'payload' -}); - -export type SidePanelAction = UnionOf; +export const navigateFromSidePanel = (id: string) => + (dispatch: Dispatch) => { + dispatch(navigateTo(id)); + };