feat: show button based on recording state

This commit is contained in:
karishmas6
2024-10-10 21:48:53 +05:30
parent c5312e3d2f
commit 7e5f1b807f

View File

@@ -110,14 +110,7 @@ export const NavBar: React.FC<NavBarProps> = ({ newRecording, recordingName, isR
<Logout sx={{ marginRight: '5px' }} /> <Logout sx={{ marginRight: '5px' }} />
Logout</IconButton> Logout</IconButton>
</> </>
) : "" ) : <Button sx={{
}
{
recordingLength > 0
? <SaveRecording fileName={recordingName} />
: null
}
{isRecording ? <Button sx={{
width: '100px', width: '100px',
background: '#fff', background: '#fff',
color: 'rgba(25, 118, 210, 0.7)', color: 'rgba(25, 118, 210, 0.7)',
@@ -130,7 +123,12 @@ export const NavBar: React.FC<NavBarProps> = ({ newRecording, recordingName, isR
}} onClick={goToMainMenu}> }} onClick={goToMainMenu}>
<MeetingRoomIcon sx={{ marginRight: '5px' }} /> <MeetingRoomIcon sx={{ marginRight: '5px' }} />
exit</Button> exit</Button>
: null} }
{
recordingLength > 0
? <SaveRecording fileName={recordingName} />
: null
}
</div> </div>
</> </>
) : "" ) : ""