From 2ed09970e9b17c225a71f9e56e9a7af39abeaf30 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 11 Oct 2024 04:51:19 +0530 Subject: [PATCH] feat: recordingURl --- src/context/globalInfo.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/context/globalInfo.tsx b/src/context/globalInfo.tsx index 7e7a3826..9b8934a1 100644 --- a/src/context/globalInfo.tsx +++ b/src/context/globalInfo.tsx @@ -20,6 +20,8 @@ interface GlobalInfo { setRecordingId: (newId: string | null) => void; recordingName: string; setRecordingName: (recordingName: string) => void; + recordingUrl: string; + setRecordingUrl: (recordingUrl: string) => void; }; class GlobalInfoStore implements Partial { @@ -35,6 +37,7 @@ class GlobalInfoStore implements Partial { recordings: string[] = []; rerenderRuns = false; recordingName = ''; + recordingUrl = ''; }; const globalInfoStore = new GlobalInfoStore(); @@ -51,6 +54,7 @@ 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 [recordingUrl, setRecordingUrl] = useState(globalInfoStore.recordingUrl); const notify = (severity: 'error' | 'warning' | 'info' | 'success', message: string) => { setNotification({ severity, message, isOpen: true }); @@ -86,7 +90,9 @@ export const GlobalInfoProvider = ({ children }: { children: JSX.Element }) => { recordingId, setRecordingId, recordingName, - setRecordingName + setRecordingName, + recordingUrl, + setRecordingUrl, }} > {children}