diff --git a/src/components/molecules/SaveRecording.tsx b/src/components/molecules/SaveRecording.tsx index b4e175bb..b7d0c125 100644 --- a/src/components/molecules/SaveRecording.tsx +++ b/src/components/molecules/SaveRecording.tsx @@ -13,14 +13,14 @@ interface SaveRecordingProps { fileName: string; } -export const SaveRecording = ({fileName}: SaveRecordingProps) => { +export const SaveRecording = ({ fileName }: SaveRecordingProps) => { const [openModal, setOpenModal] = useState(false); const [needConfirm, setNeedConfirm] = useState(false); const [recordingName, setRecordingName] = useState(fileName); const [waitingForSave, setWaitingForSave] = useState(false); - const { browserId, setBrowserId, notify, recordings } = useGlobalInfoStore(); + const { browserId, setBrowserId, notify, recordings } = useGlobalInfoStore(); const { socket } = useSocketStore(); const handleChangeOfTitle = (event: React.ChangeEvent) => { @@ -41,7 +41,7 @@ export const SaveRecording = ({fileName}: SaveRecordingProps) => { } }; - const exitRecording = useCallback(async() => { + const exitRecording = useCallback(async () => { notify('success', 'Recording saved successfully'); if (browserId) { await stopRecording(browserId); @@ -66,45 +66,45 @@ export const SaveRecording = ({fileName}: SaveRecordingProps) => { return (
setOpenModal(false)} modalStyle={modalStyle}> -
+ Save the recording as: - { needConfirm - ? - ( - - - - Recording already exists, please confirm the recording's overwrite. - - ) - : - } - { waitingForSave && - - - - - + {needConfirm + ? + ( + + + + Recording already exists, please confirm the recording's overwrite. + + ) + : + } + {waitingForSave && + + + + + }
@@ -119,7 +119,7 @@ const modalStyle = { width: '20%', backgroundColor: 'background.paper', p: 4, - height:'fit-content', - display:'block', + height: 'fit-content', + display: 'block', padding: '20px', };