From 2d51a2a3ebd40b2f6077de1b5e4561a01cd41cf7 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 21 Jun 2024 22:20:26 +0530 Subject: [PATCH] chore: lint --- src/context/globalInfo.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/context/globalInfo.tsx b/src/context/globalInfo.tsx index 766996ce..e7eb2ed2 100644 --- a/src/context/globalInfo.tsx +++ b/src/context/globalInfo.tsx @@ -6,7 +6,7 @@ interface GlobalInfo { browserId: string | null; setBrowserId: (newId: string | null) => void; lastAction: string; - setLastAction: (action: string ) => void; + setLastAction: (action: string) => void; notification: AlertSnackbarProps; notify: (severity: 'error' | 'warning' | 'info' | 'success', message: string) => void; closeNotify: () => void; @@ -18,7 +18,7 @@ interface GlobalInfo { setRecordingLength: (recordingLength: number) => void; }; -class GlobalInfoStore implements Partial{ +class GlobalInfoStore implements Partial { browserId = null; lastAction = ''; recordingLength = 0; @@ -45,11 +45,11 @@ export const GlobalInfoProvider = ({ children }: { children: JSX.Element }) => { const [recordingLength, setRecordingLength] = useState(globalInfoStore.recordingLength); const notify = (severity: 'error' | 'warning' | 'info' | 'success', message: string) => { - setNotification({severity, message, isOpen: true}); + setNotification({ severity, message, isOpen: true }); } const closeNotify = () => { - setNotification( globalInfoStore.notification); + setNotification(globalInfoStore.notification); } const setBrowserIdWithValidation = (browserId: string | null) => {