Improved user info page

This commit is contained in:
Keannu Bernasol 2023-07-17 15:48:19 +08:00
parent a4d8309820
commit 0a5617ff56

View file

@ -64,7 +64,7 @@ export default function UserInfo() {
<ScrollView style={styles.background}>
<AnimatedContainer>
<Text style={styles.text_white_large}>
{user.first_name + " " + user.last_name}
{(user.first_name || "Undefined") + " " + (user.last_name || "User")}
</Text>
<View>
<Avatar />
@ -93,7 +93,7 @@ export default function UserInfo() {
</View>
<View style={{ flex: 3 }}>
<TextInput
style={[styles.input, !isEditable && styles.input]}
style={styles.input}
editable={isEditable}
onChange={(
e: NativeSyntheticEvent<TextInputChangeEventData>
@ -111,7 +111,7 @@ export default function UserInfo() {
</View>
<View style={{ flex: 3 }}>
<TextInput
style={[styles.input, !isEditable && styles.input]}
style={styles.input}
editable={isEditable}
onChange={(
e: NativeSyntheticEvent<TextInputChangeEventData>
@ -128,7 +128,7 @@ export default function UserInfo() {
</View>
<View style={{ flex: 3 }}>
<TextInput
style={[styles.input, !isEditable && styles.input]}
style={styles.input}
editable={isEditable}
onChange={(
e: NativeSyntheticEvent<TextInputChangeEventData>
@ -145,7 +145,7 @@ export default function UserInfo() {
</View>
<View style={{ flex: 3 }}>
<TextInput
style={[styles.input, !isEditable && styles.input]}
style={styles.input}
editable={isEditable}
onChange={(
e: NativeSyntheticEvent<TextInputChangeEventData>