X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/bccb9ca5151f041d8c8b73098a3e1874023e3efa..4fd42aef3c07c9e4c43bf873afe45e0043755ba0:/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 0dd6aad1..9e8da283 100644 --- a/src/store/side-panel/side-panel-action.ts +++ b/src/store/side-panel/side-panel-action.ts @@ -2,15 +2,10 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { default as unionize, ofType, UnionOf } from "unionize"; +import { Dispatch } from 'redux'; +import { navigateTo } from 'store/navigation/navigation-action'; -export const sidePanelActions = unionize({ - TOGGLE_SIDE_PANEL_ITEM_OPEN: ofType(), - TOGGLE_SIDE_PANEL_ITEM_ACTIVE: ofType(), - RESET_SIDE_PANEL_ACTIVITY: ofType<{}>(), -}, { - tag: 'type', - value: 'payload' -}); - -export type SidePanelAction = UnionOf; +export const navigateFromSidePanel = (id: string) => + (dispatch: Dispatch) => { + dispatch(navigateTo(id)); + };