From 6ee3a2c0a5ad73def2d83e1ddfc9cd1d462852a8 Mon Sep 17 00:00:00 2001 From: Rohit Date: Sat, 1 Feb 2025 11:40:47 +0530 Subject: [PATCH] feat: rm set robot global state --- src/context/globalInfo.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/context/globalInfo.tsx b/src/context/globalInfo.tsx index 3fb676aa..eaa6ded7 100644 --- a/src/context/globalInfo.tsx +++ b/src/context/globalInfo.tsx @@ -50,8 +50,6 @@ interface GlobalInfo { closeNotify: () => void; isLogin: boolean; setIsLogin: (isLogin: boolean) => void; - robot: RobotSettings | null; - setRobot: (robot: RobotSettings | null | ((prev: RobotSettings | null) => RobotSettings | null)) => void; recordings: string[]; setRecordings: (recordings: string[]) => void; rerenderRuns: boolean; @@ -92,7 +90,6 @@ class GlobalInfoStore implements Partial { isOpen: false, }; recordingId = null; - robot = null; recordings: string[] = []; rerenderRuns = false; rerenderRobots = false; @@ -128,7 +125,6 @@ export const GlobalInfoProvider = ({ children }: { children: JSX.Element }) => { const [recordingUrl, setRecordingUrl] = useState(globalInfoStore.recordingUrl); const [currentWorkflowActionsState, setCurrentWorkflowActionsState] = useState(globalInfoStore.currentWorkflowActionsState); const [shouldResetInterpretationLog, setShouldResetInterpretationLog] = useState(globalInfoStore.shouldResetInterpretationLog); - const [robot, setRobot] = useState(null); const notify = (severity: 'error' | 'warning' | 'info' | 'success', message: string) => { setNotification({ severity, message, isOpen: true }); @@ -163,8 +159,6 @@ export const GlobalInfoProvider = ({ children }: { children: JSX.Element }) => { notification, notify, closeNotify, - robot, - setRobot, recordings, setRecordings, rerenderRuns,