Skip to content

Commit 6ee3a2c

Browse files
committed
feat: rm set robot global state
1 parent 251e22f commit 6ee3a2c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/context/globalInfo.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ interface GlobalInfo {
5050
closeNotify: () => void;
5151
isLogin: boolean;
5252
setIsLogin: (isLogin: boolean) => void;
53-
robot: RobotSettings | null;
54-
setRobot: (robot: RobotSettings | null | ((prev: RobotSettings | null) => RobotSettings | null)) => void;
5553
recordings: string[];
5654
setRecordings: (recordings: string[]) => void;
5755
rerenderRuns: boolean;
@@ -92,7 +90,6 @@ class GlobalInfoStore implements Partial<GlobalInfo> {
9290
isOpen: false,
9391
};
9492
recordingId = null;
95-
robot = null;
9693
recordings: string[] = [];
9794
rerenderRuns = false;
9895
rerenderRobots = false;
@@ -128,7 +125,6 @@ export const GlobalInfoProvider = ({ children }: { children: JSX.Element }) => {
128125
const [recordingUrl, setRecordingUrl] = useState<string>(globalInfoStore.recordingUrl);
129126
const [currentWorkflowActionsState, setCurrentWorkflowActionsState] = useState(globalInfoStore.currentWorkflowActionsState);
130127
const [shouldResetInterpretationLog, setShouldResetInterpretationLog] = useState<boolean>(globalInfoStore.shouldResetInterpretationLog);
131-
const [robot, setRobot] = useState<RobotSettings | null>(null);
132128

133129
const notify = (severity: 'error' | 'warning' | 'info' | 'success', message: string) => {
134130
setNotification({ severity, message, isOpen: true });
@@ -163,8 +159,6 @@ export const GlobalInfoProvider = ({ children }: { children: JSX.Element }) => {
163159
notification,
164160
notify,
165161
closeNotify,
166-
robot,
167-
setRobot,
168162
recordings,
169163
setRecordings,
170164
rerenderRuns,

0 commit comments

Comments
 (0)