From 42566867db39d9bd17e88c3aedb9488ad5f57f76 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Tue, 17 Sep 2024 18:06:49 +0530 Subject: [PATCH] feat: pass handle integrate recording --- src/pages/MainPage.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/MainPage.tsx b/src/pages/MainPage.tsx index 6ffbb63c..51ceb02c 100644 --- a/src/pages/MainPage.tsx +++ b/src/pages/MainPage.tsx @@ -9,6 +9,7 @@ import { io, Socket } from "socket.io-client"; import { stopRecording } from "../api/recording"; import { RunSettings } from "../components/molecules/RunSettings"; import { ScheduleSettings } from "../components/molecules/ScheduleSettings"; +import { IntegrationSettings } from "../components/molecules/IntegrationSettings"; interface MainPageProps { handleEditRecording: (fileName: string) => void; @@ -112,6 +113,10 @@ export const MainPage = ({ handleEditRecording }: MainPageProps) => { }); } + const handleIntegrateRecording = (settings: IntegrationSettings) => { + console.log(`Integration settings:`, settings); + } + const DisplayContent = () => { switch (content) { case 'recordings': @@ -120,7 +125,7 @@ export const MainPage = ({ handleEditRecording }: MainPageProps) => { handleRunRecording={handleRunRecording} setFileName={setFileName} handleScheduleRecording={handleScheduleRecording} - handleIntegrateRecording={handleScheduleRecording} + handleIntegrateRecording={handleIntegrateRecording} />; case 'runs': return