Merge branch '17426-plug-ins' refs #17426
[arvados-workbench2.git] / src / store / side-panel / side-panel-action.ts
index 32fa653bfe0427638fa03ac63ddb46a68c77b54d..28320f9661d5fb5819938f958f264012dd81110e 100644 (file)
@@ -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<string>(),
-    TOGGLE_SIDE_PANEL_ITEM_ACTIVE: ofType<string>(),
-    RESET_SIDE_PANEL_ACTIVITY: ofType<string>(),
-}, {
-    tag: 'type',
-    value: 'payload'
-});
-
-export type SidePanelAction = UnionOf<typeof actions>;
-export default actions;
\ No newline at end of file
+export const navigateFromSidePanel = (id: string) =>
+    (dispatch: Dispatch) => {
+        dispatch<any>(navigateTo(id));
+    };