X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/6c40105be37e95350ad0537c38401d58e6f84e2c..bf5703f285ed90bb3334f531ce0a46e5e00d122f:/src/views-components/process-remove-dialog/process-remove-dialog.tsx

diff --git a/src/views-components/process-remove-dialog/process-remove-dialog.tsx b/src/views-components/process-remove-dialog/process-remove-dialog.tsx
index 4f6f9076..99bfd971 100644
--- a/src/views-components/process-remove-dialog/process-remove-dialog.tsx
+++ b/src/views-components/process-remove-dialog/process-remove-dialog.tsx
@@ -2,19 +2,20 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { Dispatch } from "redux";
+import { Dispatch, compose } from 'redux';
 import { connect } from "react-redux";
-import { ConfirmationDialog } from "~/components/confirmation-dialog/confirmation-dialog";
-import { withDialog, WithDialogProps } from "~/store/dialog/with-dialog";
-import { removeProcessPermanently, REMOVE_PROCESS_DIALOG } from "~/store/processes/processes-actions";
+import { ConfirmationDialog } from "components/confirmation-dialog/confirmation-dialog";
+import { withDialog, WithDialogProps } from "store/dialog/with-dialog";
+import { removeProcessPermanently, REMOVE_PROCESS_DIALOG } from 'store/processes/processes-actions';
 
- const mapDispatchToProps = (dispatch: Dispatch, props: WithDialogProps<any>) => ({
+const mapDispatchToProps = (dispatch: Dispatch, props: WithDialogProps<any>) => ({
     onConfirm: () => {
         props.closeDialog();
         dispatch<any>(removeProcessPermanently(props.data.uuid));
     }
 });
 
- export const [RemoveProcessDialog] = [ConfirmationDialog]
-    .map(connect(null, mapDispatchToProps) as any)
-    .map(withDialog(REMOVE_PROCESS_DIALOG)); 
\ No newline at end of file
+export const RemoveProcessDialog = compose(
+    withDialog(REMOVE_PROCESS_DIALOG),
+    connect(null, mapDispatchToProps)
+)(ConfirmationDialog);
