feat: pass handle integrate recording
This commit is contained in:
@@ -9,6 +9,7 @@ import { io, Socket } from "socket.io-client";
|
|||||||
import { stopRecording } from "../api/recording";
|
import { stopRecording } from "../api/recording";
|
||||||
import { RunSettings } from "../components/molecules/RunSettings";
|
import { RunSettings } from "../components/molecules/RunSettings";
|
||||||
import { ScheduleSettings } from "../components/molecules/ScheduleSettings";
|
import { ScheduleSettings } from "../components/molecules/ScheduleSettings";
|
||||||
|
import { IntegrationSettings } from "../components/molecules/IntegrationSettings";
|
||||||
|
|
||||||
interface MainPageProps {
|
interface MainPageProps {
|
||||||
handleEditRecording: (fileName: string) => void;
|
handleEditRecording: (fileName: string) => void;
|
||||||
@@ -112,6 +113,10 @@ export const MainPage = ({ handleEditRecording }: MainPageProps) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const handleIntegrateRecording = (settings: IntegrationSettings) => {
|
||||||
|
console.log(`Integration settings:`, settings);
|
||||||
|
}
|
||||||
|
|
||||||
const DisplayContent = () => {
|
const DisplayContent = () => {
|
||||||
switch (content) {
|
switch (content) {
|
||||||
case 'recordings':
|
case 'recordings':
|
||||||
@@ -120,7 +125,7 @@ export const MainPage = ({ handleEditRecording }: MainPageProps) => {
|
|||||||
handleRunRecording={handleRunRecording}
|
handleRunRecording={handleRunRecording}
|
||||||
setFileName={setFileName}
|
setFileName={setFileName}
|
||||||
handleScheduleRecording={handleScheduleRecording}
|
handleScheduleRecording={handleScheduleRecording}
|
||||||
handleIntegrateRecording={handleScheduleRecording}
|
handleIntegrateRecording={handleIntegrateRecording}
|
||||||
/>;
|
/>;
|
||||||
case 'runs':
|
case 'runs':
|
||||||
return <Runs
|
return <Runs
|
||||||
|
|||||||
Reference in New Issue
Block a user