X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/2d37867eccb0a76df1a285e7b7e32bbb13db99a1..31e84a9315728c2f58a26bf0e9e1d2b38326fb86:/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 6a83946c..28320f96 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)); + };