Merge pull request #46 from amhsirak/develop
feat: show record & exit options based on user session
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user