Updated: App.tsx

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-12-14 16:24:56 +01:00
parent 274d50fac3
commit f7a3ab53c5
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -33,12 +33,12 @@ export const App = () => {
<Topbar handleTransfer={handleTransfer} /> <Topbar handleTransfer={handleTransfer} />
<Transfer isOpen={isOpenTransfer} handleClose={handleTransfer} /> <Transfer isOpen={isOpenTransfer} handleClose={handleTransfer} />
<Wrapper> <Wrapper>
{userPrivilige === 'STUDENT' ? ( {userPrivilige === 'STUDENT' && (
<> <>
<Scheduler /> <Scheduler />
<Rightbar /> <Rightbar />
</> </>
) : ( )} { userPrivilige === 'DEANERY' && (
<Admin /> <Admin />
)} )}
</Wrapper> </Wrapper>