import { compose } from "redux";
import { withDialog } from "~/store/dialog/with-dialog";
import { reduxForm } from 'redux-form';
-import { COLLECTION_COPY_DIALOG, CollectionCopyFormDialogData, copyCollection } from '~/store/collections/collection-copy-actions';
+import { COLLECTION_COPY_FORM_NAME } from '~/store/collections/collection-copy-actions';
import { DialogCopy } from "~/views-components/dialog-copy/dialog-copy";
+import { copyCollection } from '~/store/workbench/workbench-actions';
+import { CopyFormDialogData } from '~/store/copy-dialog/copy-dialog';
export const CopyCollectionDialog = compose(
- withDialog(COLLECTION_COPY_DIALOG),
- reduxForm<CollectionCopyFormDialogData>({
- form: COLLECTION_COPY_DIALOG,
+ withDialog(COLLECTION_COPY_FORM_NAME),
+ reduxForm<CopyFormDialogData>({
+ form: COLLECTION_COPY_FORM_NAME,
onSubmit: (data, dispatch) => {
dispatch(copyCollection(data));
}