mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2024-11-17 06:19:27 +08:00
Merge branch 'master' of https://git.keannu1.duckdns.org/keannu125/Borrowing-TrackerFrontend into feature/student_pages
This commit is contained in:
commit
10887a5d5a
1 changed files with 29 additions and 13 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue