This commit is contained in:
Prince Kurt Laurence 2023-12-27 17:41:50 +08:00
commit c1b393047f

View file

@ -33,11 +33,12 @@ export default function Drawer() {
marginRight: "4px", marginRight: "4px",
}} }}
/> />
<div style={{ ...styles.flex_column, ...{ alignSelf: "center" } }}>
<p <p
style={{ style={{
...styles.text_light, ...styles.text_light,
...styles.text_S, ...styles.text_S,
...{ alignSelf: "center" }, ...{ textAlign: "left", margin: 0 },
}} }}
> >
{user.data {user.data
@ -46,7 +47,22 @@ export default function Drawer() {
? "Error loading user" ? "Error loading user"
: "Loading user..."} : "Loading user..."}
</p> </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>
<div <div
style={{ style={{
backgroundColor: "white", backgroundColor: "white",