Feature #14461
Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>
import { withDialog, WithDialogProps } from "~/store/dialog/with-dialog";
import { removeProcessPermanently, REMOVE_PROCESS_DIALOG } from '~/store/processes/processes-actions';
import { withDialog, WithDialogProps } from "~/store/dialog/with-dialog";
import { removeProcessPermanently, REMOVE_PROCESS_DIALOG } from '~/store/processes/processes-actions';
-const mapStateToProps = (props: WithDialogProps<string>) => ({
- ...props,
-});
-
const mapDispatchToProps = (dispatch: Dispatch, props: WithDialogProps<any>) => ({
onConfirm: () => {
props.closeDialog();
const mapDispatchToProps = (dispatch: Dispatch, props: WithDialogProps<any>) => ({
onConfirm: () => {
props.closeDialog();
export const RemoveProcessDialog = compose(
withDialog(REMOVE_PROCESS_DIALOG),
export const RemoveProcessDialog = compose(
withDialog(REMOVE_PROCESS_DIALOG),
- connect(mapStateToProps, mapDispatchToProps)
+ connect(null, mapDispatchToProps)