From 534f5bd2c212f6aa2937e87c49c3b248b5e65ae8 Mon Sep 17 00:00:00 2001 From: Rohit Date: Sat, 25 Jan 2025 17:31:51 +0530 Subject: [PATCH] feat: rm login set from global store --- src/context/globalInfo.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/context/globalInfo.tsx b/src/context/globalInfo.tsx index 28d65b34..92ce7e62 100644 --- a/src/context/globalInfo.tsx +++ b/src/context/globalInfo.tsx @@ -10,8 +10,6 @@ interface GlobalInfo { notification: AlertSnackbarProps; notify: (severity: 'error' | 'warning' | 'info' | 'success', message: string) => void; closeNotify: () => void; - isLogin: boolean; - setIsLogin: (isLogin: boolean) => void; recordings: string[]; setRecordings: (recordings: string[]) => void; rerenderRuns: boolean; @@ -55,7 +53,6 @@ class GlobalInfoStore implements Partial { recordingName = ''; initialUrl = 'https://'; recordingUrl = 'https://'; - isLogin = false; currentWorkflowActionsState = { hasScrapeListAction: false, hasScreenshotAction: false, @@ -78,7 +75,6 @@ export const GlobalInfoProvider = ({ children }: { children: JSX.Element }) => { const [recordingLength, setRecordingLength] = useState(globalInfoStore.recordingLength); const [recordingId, setRecordingId] = useState(globalInfoStore.recordingId); const [recordingName, setRecordingName] = useState(globalInfoStore.recordingName); - const [isLogin, setIsLogin] = useState(globalInfoStore.isLogin); const [initialUrl, setInitialUrl] = useState(globalInfoStore.initialUrl); const [recordingUrl, setRecordingUrl] = useState(globalInfoStore.recordingUrl); const [currentWorkflowActionsState, setCurrentWorkflowActionsState] = useState(globalInfoStore.currentWorkflowActionsState); @@ -131,8 +127,6 @@ export const GlobalInfoProvider = ({ children }: { children: JSX.Element }) => { setInitialUrl, recordingUrl, setRecordingUrl, - isLogin, - setIsLogin, currentWorkflowActionsState, setCurrentWorkflowActionsState, shouldResetInterpretationLog,