diff --git a/src/components/molecules/NavBar.tsx b/src/components/molecules/NavBar.tsx index 640f09cb..af357af3 100644 --- a/src/components/molecules/NavBar.tsx +++ b/src/components/molecules/NavBar.tsx @@ -14,13 +14,13 @@ interface NavBarProps { isRecording: boolean; } -export const NavBar = ({newRecording, recordingName, isRecording}:NavBarProps) => { +export const NavBar = ({ newRecording, recordingName, isRecording }: NavBarProps) => { const { notify, browserId, setBrowserId, recordingLength } = useGlobalInfoStore(); // If recording is in progress, the resources and change page view by setting browserId to null // else it won't affect the page - const goToMainMenu = async() => { + const goToMainMenu = async () => { if (browserId) { await stopRecording(browserId); notify('warning', 'Current Recording was terminated'); @@ -43,8 +43,8 @@ export const NavBar = ({newRecording, recordingName, isRecording}:NavBarProps) = display: 'flex', justifyContent: 'flex-start', }}> - -
Maxun
+ +
Maxun
- {isRecording ? 'NEW' : 'RECORD'} + {isRecording ? 'NEW' : 'RECORD'} { recordingLength > 0 - ? - :null + ? + : null } - { isRecording ? - : null } + : null}