chore: lint

This commit is contained in:
karishmas6
2024-06-21 22:20:26 +05:30
parent 7865609caa
commit 2d51a2a3eb

View File

@@ -6,7 +6,7 @@ interface GlobalInfo {
browserId: string | null; browserId: string | null;
setBrowserId: (newId: string | null) => void; setBrowserId: (newId: string | null) => void;
lastAction: string; lastAction: string;
setLastAction: (action: string ) => void; setLastAction: (action: string) => void;
notification: AlertSnackbarProps; notification: AlertSnackbarProps;
notify: (severity: 'error' | 'warning' | 'info' | 'success', message: string) => void; notify: (severity: 'error' | 'warning' | 'info' | 'success', message: string) => void;
closeNotify: () => void; closeNotify: () => void;
@@ -18,7 +18,7 @@ interface GlobalInfo {
setRecordingLength: (recordingLength: number) => void; setRecordingLength: (recordingLength: number) => void;
}; };
class GlobalInfoStore implements Partial<GlobalInfo>{ class GlobalInfoStore implements Partial<GlobalInfo> {
browserId = null; browserId = null;
lastAction = ''; lastAction = '';
recordingLength = 0; recordingLength = 0;
@@ -45,11 +45,11 @@ export const GlobalInfoProvider = ({ children }: { children: JSX.Element }) => {
const [recordingLength, setRecordingLength] = useState<number>(globalInfoStore.recordingLength); const [recordingLength, setRecordingLength] = useState<number>(globalInfoStore.recordingLength);
const notify = (severity: 'error' | 'warning' | 'info' | 'success', message: string) => { const notify = (severity: 'error' | 'warning' | 'info' | 'success', message: string) => {
setNotification({severity, message, isOpen: true}); setNotification({ severity, message, isOpen: true });
} }
const closeNotify = () => { const closeNotify = () => {
setNotification( globalInfoStore.notification); setNotification(globalInfoStore.notification);
} }
const setBrowserIdWithValidation = (browserId: string | null) => { const setBrowserIdWithValidation = (browserId: string | null) => {