X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c90e813adcec89899d9db95843295a84fb058c3e..909844cdb1eda3d4cd31f3fa1818ee7eca62d319:/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 32fa653b..9e8da283 100644 --- a/src/store/side-panel/side-panel-action.ts +++ b/src/store/side-panel/side-panel-action.ts @@ -2,16 +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'; -const actions = 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 default actions; \ No newline at end of file +export const navigateFromSidePanel = (id: string) => + (dispatch: Dispatch) => { + dispatch(navigateTo(id)); + };