File tree Expand file tree Collapse file tree 16 files changed +44
-133
lines changed
frontend-dev/src/components/AllIntegrations Expand file tree Collapse file tree 16 files changed +44
-133
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import { useParams } from 'react-router-dom'
55import { useRecoilState , useRecoilValue } from 'recoil'
66import { $actionConf , $formFields , $newFlow } from '../../../GlobalStates'
77import SnackMsg from '../../Utilities/SnackMsg'
8- import EditFormInteg from '../EditFormInteg'
9- import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
10- import EditWebhookInteg from '../EditWebhookInteg'
118import { saveActionConf } from '../IntegrationHelpers/IntegrationHelpers'
9+ import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
1210import WebHooksIntegration from '../IntegrationHelpers/WebHook/WebHooksIntegration'
1311import WebHooksStepTwo from '../IntegrationHelpers/WebHook/WebHooksStepTwo'
1412
@@ -25,11 +23,7 @@ function EditAdvancedFormIntegration({ allIntegURL }) {
2523 return (
2624 < div style = { { width : 900 } } >
2725 < SnackMsg snack = { snack } setSnackbar = { setSnackbar } />
28- { flow . triggered_entity !== 'Webhook' ? (
29- < EditFormInteg setSnackbar = { setSnackbar } />
30- ) : (
31- < EditWebhookInteg setSnackbar = { setSnackbar } />
32- ) }
26+ < SetEditIntegComponents entity = { flow . triggered_entity } setSnackbar = { setSnackbar } />
3327
3428 < div className = "mt-3" >
3529 < WebHooksIntegration
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import { useParams } from 'react-router-dom'
55import { useRecoilState , useRecoilValue } from 'recoil'
66import { $actionConf , $formFields , $newFlow } from '../../../GlobalStates'
77import SnackMsg from '../../Utilities/SnackMsg'
8- import EditFormInteg from '../EditFormInteg'
9- import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
10- import EditWebhookInteg from '../EditWebhookInteg'
118import { saveActionConf } from '../IntegrationHelpers/IntegrationHelpers'
9+ import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
1210import WebHooksIntegration from '../IntegrationHelpers/WebHook/WebHooksIntegration'
1311import WebHooksStepTwo from '../IntegrationHelpers/WebHook/WebHooksStepTwo'
1412
@@ -25,11 +23,7 @@ function EditAlbato({ allIntegURL }) {
2523 return (
2624 < div style = { { width : 900 } } >
2725 < SnackMsg snack = { snack } setSnackbar = { setSnackbar } />
28- { flow . triggered_entity !== 'Webhook' ? (
29- < EditFormInteg setSnackbar = { setSnackbar } />
30- ) : (
31- < EditWebhookInteg setSnackbar = { setSnackbar } />
32- ) }
26+ < SetEditIntegComponents entity = { flow . triggered_entity } setSnackbar = { setSnackbar } />
3327
3428 < div className = "mt-3" >
3529 < WebHooksIntegration
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import { useParams } from 'react-router-dom'
55import { useRecoilState , useRecoilValue } from 'recoil'
66import { $actionConf , $formFields , $newFlow } from '../../../GlobalStates'
77import SnackMsg from '../../Utilities/SnackMsg'
8- import EditFormInteg from '../EditFormInteg'
9- import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
10- import EditWebhookInteg from '../EditWebhookInteg'
118import { saveActionConf } from '../IntegrationHelpers/IntegrationHelpers'
9+ import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
1210import WebHooksIntegration from '../IntegrationHelpers/WebHook/WebHooksIntegration'
1311import WebHooksStepTwo from '../IntegrationHelpers/WebHook/WebHooksStepTwo'
1412
@@ -25,11 +23,7 @@ function EditAntApps({ allIntegURL }) {
2523 return (
2624 < div style = { { width : 900 } } >
2725 < SnackMsg snack = { snack } setSnackbar = { setSnackbar } />
28- { flow . triggered_entity !== 'Webhook' ? (
29- < EditFormInteg setSnackbar = { setSnackbar } />
30- ) : (
31- < EditWebhookInteg setSnackbar = { setSnackbar } />
32- ) }
26+ < SetEditIntegComponents entity = { flow . triggered_entity } setSnackbar = { setSnackbar } />
3327
3428 < div className = "mt-3" >
3529 < WebHooksIntegration
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import { useParams } from 'react-router-dom'
55import { useRecoilState , useRecoilValue } from 'recoil'
66import { $actionConf , $formFields , $newFlow } from '../../../GlobalStates'
77import SnackMsg from '../../Utilities/SnackMsg'
8- import EditFormInteg from '../EditFormInteg'
9- import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
10- import EditWebhookInteg from '../EditWebhookInteg'
118import { saveActionConf } from '../IntegrationHelpers/IntegrationHelpers'
9+ import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
1210import WebHooksIntegration from '../IntegrationHelpers/WebHook/WebHooksIntegration'
1311import WebHooksStepTwo from '../IntegrationHelpers/WebHook/WebHooksStepTwo'
1412
@@ -25,11 +23,7 @@ function EditAutomatorWP({ allIntegURL }) {
2523 return (
2624 < div style = { { width : 900 } } >
2725 < SnackMsg snack = { snack } setSnackbar = { setSnackbar } />
28- { flow . triggered_entity !== 'Webhook' ? (
29- < EditFormInteg setSnackbar = { setSnackbar } />
30- ) : (
31- < EditWebhookInteg setSnackbar = { setSnackbar } />
32- ) }
26+ < SetEditIntegComponents entity = { flow . triggered_entity } setSnackbar = { setSnackbar } />
3327
3428 < div className = "mt-3" >
3529 < WebHooksIntegration
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import { useParams } from 'react-router-dom'
55import { useRecoilState , useRecoilValue } from 'recoil'
66import { $actionConf , $formFields , $newFlow } from '../../../GlobalStates'
77import SnackMsg from '../../Utilities/SnackMsg'
8- import EditFormInteg from '../EditFormInteg'
9- import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
10- import EditWebhookInteg from '../EditWebhookInteg'
118import { saveActionConf } from '../IntegrationHelpers/IntegrationHelpers'
9+ import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
1210import WebHooksIntegration from '../IntegrationHelpers/WebHook/WebHooksIntegration'
1311import WebHooksStepTwo from '../IntegrationHelpers/WebHook/WebHooksStepTwo'
1412
@@ -25,11 +23,7 @@ function EditFlowMattic({ allIntegURL }) {
2523 return (
2624 < div style = { { width : 900 } } >
2725 < SnackMsg snack = { snack } setSnackbar = { setSnackbar } />
28- { flow . triggered_entity !== 'Webhook' ? (
29- < EditFormInteg setSnackbar = { setSnackbar } />
30- ) : (
31- < EditWebhookInteg setSnackbar = { setSnackbar } />
32- ) }
26+ < SetEditIntegComponents entity = { flow . triggered_entity } setSnackbar = { setSnackbar } />
3327
3428 < div className = "mt-3" >
3529 < WebHooksIntegration
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import { useParams } from 'react-router-dom'
55import { useRecoilState , useRecoilValue } from 'recoil'
66import { $actionConf , $formFields , $newFlow } from '../../../GlobalStates'
77import SnackMsg from '../../Utilities/SnackMsg'
8- import EditFormInteg from '../EditFormInteg'
9- import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
10- import EditWebhookInteg from '../EditWebhookInteg'
118import { saveActionConf } from '../IntegrationHelpers/IntegrationHelpers'
9+ import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
1210import WebHooksIntegration from '../IntegrationHelpers/WebHook/WebHooksIntegration'
1311import WebHooksStepTwo from '../IntegrationHelpers/WebHook/WebHooksStepTwo'
1412
@@ -24,11 +22,8 @@ function EditIntegromat({ allIntegURL }) {
2422 return (
2523 < div style = { { width : 900 } } >
2624 < SnackMsg snack = { snack } setSnackbar = { setSnackbar } />
27- { flow . triggered_entity !== 'Webhook' ? (
28- < EditFormInteg setSnackbar = { setSnackbar } />
29- ) : (
30- < EditWebhookInteg setSnackbar = { setSnackbar } />
31- ) }
25+ < SetEditIntegComponents entity = { flow . triggered_entity } setSnackbar = { setSnackbar } />
26+
3227 < div className = "mt-3" >
3328 < WebHooksIntegration
3429 formID = { formID }
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import { useParams } from 'react-router-dom'
55import { useRecoilState , useRecoilValue } from 'recoil'
66import { $actionConf , $formFields , $newFlow } from '../../../GlobalStates'
77import SnackMsg from '../../Utilities/SnackMsg'
8- import EditFormInteg from '../EditFormInteg'
9- import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
10- import EditWebhookInteg from '../EditWebhookInteg'
118import { saveActionConf } from '../IntegrationHelpers/IntegrationHelpers'
9+ import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
1210import WebHooksIntegration from '../IntegrationHelpers/WebHook/WebHooksIntegration'
1311import WebHooksStepTwo from '../IntegrationHelpers/WebHook/WebHooksStepTwo'
1412
@@ -25,11 +23,7 @@ function EditKonnectzIT({ allIntegURL }) {
2523 return (
2624 < div style = { { width : 900 } } >
2725 < SnackMsg snack = { snack } setSnackbar = { setSnackbar } />
28- { flow . triggered_entity !== 'Webhook' ? (
29- < EditFormInteg setSnackbar = { setSnackbar } />
30- ) : (
31- < EditWebhookInteg setSnackbar = { setSnackbar } />
32- ) }
26+ < SetEditIntegComponents entity = { flow . triggered_entity } setSnackbar = { setSnackbar } />
3327
3428 < div className = "mt-3" >
3529 < WebHooksIntegration
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import { useParams } from 'react-router-dom'
55import { useRecoilState , useRecoilValue } from 'recoil'
66import { $actionConf , $formFields , $newFlow } from '../../../GlobalStates'
77import SnackMsg from '../../Utilities/SnackMsg'
8- import EditFormInteg from '../EditFormInteg'
9- import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
10- import EditWebhookInteg from '../EditWebhookInteg'
118import { saveActionConf } from '../IntegrationHelpers/IntegrationHelpers'
9+ import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
1210import WebHooksIntegration from '../IntegrationHelpers/WebHook/WebHooksIntegration'
1311import WebHooksStepTwo from '../IntegrationHelpers/WebHook/WebHooksStepTwo'
1412
@@ -25,11 +23,7 @@ function EditN8n({ allIntegURL }) {
2523 return (
2624 < div style = { { width : 900 } } >
2725 < SnackMsg snack = { snack } setSnackbar = { setSnackbar } />
28- { flow . triggered_entity !== 'Webhook' ? (
29- < EditFormInteg setSnackbar = { setSnackbar } />
30- ) : (
31- < EditWebhookInteg setSnackbar = { setSnackbar } />
32- ) }
26+ < SetEditIntegComponents entity = { flow . triggered_entity } setSnackbar = { setSnackbar } />
3327
3428 < div className = "mt-3" >
3529 < WebHooksIntegration
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import { useParams } from 'react-router-dom'
55import { useRecoilState , useRecoilValue } from 'recoil'
66import { $actionConf , $formFields , $newFlow } from '../../../GlobalStates'
77import SnackMsg from '../../Utilities/SnackMsg'
8- import EditFormInteg from '../EditFormInteg'
9- import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
10- import EditWebhookInteg from '../EditWebhookInteg'
118import { saveActionConf } from '../IntegrationHelpers/IntegrationHelpers'
9+ import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
1210import WebHooksIntegration from '../IntegrationHelpers/WebHook/WebHooksIntegration'
1311import WebHooksStepTwo from '../IntegrationHelpers/WebHook/WebHooksStepTwo'
1412
@@ -25,11 +23,7 @@ function EditPabbly({ allIntegURL }) {
2523 return (
2624 < div style = { { width : 900 } } >
2725 < SnackMsg snack = { snack } setSnackbar = { setSnackbar } />
28- { flow . triggered_entity !== 'Webhook' ? (
29- < EditFormInteg setSnackbar = { setSnackbar } />
30- ) : (
31- < EditWebhookInteg setSnackbar = { setSnackbar } />
32- ) }
26+ < SetEditIntegComponents entity = { flow . triggered_entity } setSnackbar = { setSnackbar } />
3327
3428 < div className = "mt-3" >
3529 < WebHooksIntegration
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import { useParams } from 'react-router-dom'
55import { useRecoilState , useRecoilValue } from 'recoil'
66import { $actionConf , $formFields , $newFlow } from '../../../GlobalStates'
77import SnackMsg from '../../Utilities/SnackMsg'
8- import EditFormInteg from '../EditFormInteg'
9- import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
10- import EditWebhookInteg from '../EditWebhookInteg'
118import { saveActionConf } from '../IntegrationHelpers/IntegrationHelpers'
9+ import SetEditIntegComponents from '../IntegrationHelpers/SetEditIntegComponents'
1210import WebHooksIntegration from '../IntegrationHelpers/WebHook/WebHooksIntegration'
1311import WebHooksStepTwo from '../IntegrationHelpers/WebHook/WebHooksStepTwo'
1412
@@ -25,11 +23,7 @@ function EditSperseIO({ allIntegURL }) {
2523 return (
2624 < div style = { { width : 900 } } >
2725 < SnackMsg snack = { snack } setSnackbar = { setSnackbar } />
28- { flow . triggered_entity !== 'Webhook' ? (
29- < EditFormInteg setSnackbar = { setSnackbar } />
30- ) : (
31- < EditWebhookInteg setSnackbar = { setSnackbar } />
32- ) }
26+ < SetEditIntegComponents entity = { flow . triggered_entity } setSnackbar = { setSnackbar } />
3327
3428 < div className = "mt-3" >
3529 < WebHooksIntegration
You can’t perform that action at this time.
0 commit comments