Merge branch 'master' of git.keannu1.duckdns.org:keannu125/Borrowing-TrackerFrontend into feature/student_pages

This commit is contained in:
Keannu Bernasol 2023-12-22 13:46:19 +08:00
commit 9747166f49

View file

@ -33,20 +33,36 @@ export default function Drawer() {
marginRight: "4px",
}}
/>
<p
style={{
...styles.text_light,
...styles.text_S,
...{ alignSelf: "center" },
}}
>
{user.data
? user.data.username
: user.isError
? "Error loading user"
: "Loading user..."}
</p>
<div style={{ ...styles.flex_column, ...{ alignSelf: "center" } }}>
<p
style={{
...styles.text_light,
...styles.text_S,
...{ textAlign: "left", margin: 0 },
}}
>
{user.data
? user.data.username
: user.isError
? "Error loading user"
: "Loading user..."}
</p>
<p
style={{
...styles.text_light,
...styles.text_S,
...{ textAlign: "left", margin: 0 },
}}
>
{user.data && user.data.is_technician
? "Technician"
: user.data && user.data.is_teacher
? "Teacher"
: "Student"}
</p>
</div>
</div>
<div
style={{
backgroundColor: "white",