From 365b1f7ddfe45291d041e0e93566b82cfb28e6f0 Mon Sep 17 00:00:00 2001 From: Paul Gain Date: Fri, 9 Feb 2024 11:45:36 +0000 Subject: [PATCH] Refactor ExportPipeline ContactInformation to use the new implementation --- .../ExportForm/ExportFormFields.jsx | 30 ++++--------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/src/client/modules/ExportPipeline/ExportForm/ExportFormFields.jsx b/src/client/modules/ExportPipeline/ExportForm/ExportFormFields.jsx index 36df9e4118a..4ad837e8b8d 100644 --- a/src/client/modules/ExportPipeline/ExportForm/ExportFormFields.jsx +++ b/src/client/modules/ExportPipeline/ExportForm/ExportFormFields.jsx @@ -29,8 +29,7 @@ import { import ResourceOptionsField from '../../../components/Form/elements/ResourceOptionsField' import Task from '../../../components/Task' -import { TASK_REDIRECT_TO_CONTACT_FORM } from '../../../components/ContactForm/state' -import { TASK_SAVE_EXPORT, ID as STATE_ID } from './state' +import { TASK_SAVE_EXPORT } from './state' import { transformArrayIdNameToValueLabel } from '../../../transformers' import { validateTeamMembers } from './validation' @@ -177,29 +176,10 @@ const ExportFormFields = ({ } autoScroll={values.scrollToContact} /> - - {(getTask) => { - const openContactFormTask = getTask( - TASK_REDIRECT_TO_CONTACT_FORM, - STATE_ID - ) - return ( - { - openContactFormTask.start({ - payload: { - values, - url: redirectUrl, - storeId: STATE_ID, - }, - }) - }} - /> - ) - }} - - +