Merge pull request #46 from amhsirak/develop

feat: show record & exit options based on user session
This commit is contained in:
Karishma Shukla
2024-09-30 16:08:36 +05:30
committed by GitHub

View File

@@ -61,6 +61,9 @@ export const NavBar = ({ newRecording, recordingName, isRecording }: NavBarProps
<RecordingIcon /> <RecordingIcon />
<div style={{ padding: '11px' }}><ProjectName>Maxun</ProjectName></div> <div style={{ padding: '11px' }}><ProjectName>Maxun</ProjectName></div>
</div> </div>
{
user !== null ? (
<>
<div style={{ <div style={{
display: 'flex', display: 'flex',
justifyContent: 'flex-end', justifyContent: 'flex-end',
@@ -106,8 +109,6 @@ export const NavBar = ({ newRecording, recordingName, isRecording }: NavBarProps
<MeetingRoomIcon sx={{ marginRight: '5px' }} /> <MeetingRoomIcon sx={{ marginRight: '5px' }} />
exit</Button> exit</Button>
: null} : null}
{
user !== null ? (
<Button sx={{ <Button sx={{
width: '100px', width: '100px',
background: '#fff', background: '#fff',
@@ -121,9 +122,10 @@ export const NavBar = ({ newRecording, recordingName, isRecording }: NavBarProps
}} onClick={logout}> }} onClick={logout}>
<MeetingRoomIcon sx={{ marginRight: '5px' }} /> <MeetingRoomIcon sx={{ marginRight: '5px' }} />
logout</Button> logout</Button>
</div>
</>
) : "" ) : ""
} }
</div>
</NavBarWrapper> </NavBarWrapper>
); );