From 5c0998ae017e2ef5a4b4030829d560f0d47df59b Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Tue, 17 Sep 2024 20:24:36 +0530 Subject: [PATCH] refactor: use handleStart prop --- src/components/molecules/IntegrationSettings.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/molecules/IntegrationSettings.tsx b/src/components/molecules/IntegrationSettings.tsx index 7a91c804..d7bdcba9 100644 --- a/src/components/molecules/IntegrationSettings.tsx +++ b/src/components/molecules/IntegrationSettings.tsx @@ -6,7 +6,7 @@ import { modalStyle } from "./AddWhereCondModal"; interface IntegrationProps { isOpen: boolean; - handleSubmit: (data: IntegrationSettings) => void; + handleStart: (data: IntegrationSettings) => void; handleClose: () => void; } @@ -17,7 +17,7 @@ export interface IntegrationSettings { data: string; } -export const IntegrationSettingsModal = ({ isOpen, handleSubmit, handleClose }: IntegrationProps) => { +export const IntegrationSettingsModal = ({ isOpen, handleStart, handleClose }: IntegrationProps) => { const [settings, setSettings] = useState({ credentials: '', @@ -83,7 +83,7 @@ export const IntegrationSettingsModal = ({ isOpen, handleSubmit, handleClose }: fullWidth /> -