From d8f9bd98255fc5862d702799f468b8e98a4f2a20 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 24 Jul 2024 17:09:50 +0530 Subject: [PATCH] chore: lint --- src/pages/PageWrappper.tsx | 42 +++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/pages/PageWrappper.tsx b/src/pages/PageWrappper.tsx index e788ad50..686d4cd4 100644 --- a/src/pages/PageWrappper.tsx +++ b/src/pages/PageWrappper.tsx @@ -15,7 +15,7 @@ export const PageWrapper = () => { const [recordingName, setRecordingName] = useState(''); const [open, setOpen] = useState(false); - const { browserId, setBrowserId, notification } = useGlobalInfoStore(); + const { browserId, setBrowserId, notification } = useGlobalInfoStore(); const handleNewRecording = () => { setBrowserId('new-recording'); @@ -27,15 +27,15 @@ export const PageWrapper = () => { setBrowserId('new-recording'); } - const isNotification = (): boolean=> { - if (notification.isOpen && !open){ + const isNotification = (): boolean => { + if (notification.isOpen && !open) { setOpen(true); } return notification.isOpen; } useEffect(() => { - const isRecordingInProgress = async() => { + const isRecordingInProgress = async () => { const id = await getActiveBrowserId(); if (id) { setBrowserId(id); @@ -48,26 +48,26 @@ export const PageWrapper = () => {
- - {browserId - ? ( - - - - - - - ) - : - } + + {browserId + ? ( + + + + + + + ) + : + } - { isNotification() ? + {isNotification() ? + message={notification.message} + isOpen={notification.isOpen} /> : null }