15803: toggleIsActive will use unsetup to deactivate user
[arvados.git] / src / store / rich-text-editor-dialog / rich-text-editor-dialog-actions.tsx
index d8bb6fd1c226665251e8168388573aa74cf049fd..6213c60a91e643559decbf8855c9351eb5a72b91 100644 (file)
@@ -2,11 +2,8 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { Dispatch } from "redux";
 import { dialogActions } from "~/store/dialog/dialog-actions";
 
 export const RICH_TEXT_EDITOR_DIALOG_NAME = 'richTextEditorDialogName';
-export const openRichTextEditorDialog = (title: string, text: string) => 
-    async (dispatch: Dispatch) => {
-        dispatch(dialogActions.OPEN_DIALOG({ id: RICH_TEXT_EDITOR_DIALOG_NAME, data: { title, text } }));
-    };
\ No newline at end of file
+export const openRichTextEditorDialog = (title: string, text: string) =>
+    dialogActions.OPEN_DIALOG({ id: RICH_TEXT_EDITOR_DIALOG_NAME, data: { title, text } });
\ No newline at end of file