minor fix

This commit is contained in:
Maria Sanchez 2022-09-01 16:34:39 -06:00
parent 695eb3c205
commit 53e7c3f114
1 changed files with 7 additions and 7 deletions

View File

@ -96,24 +96,24 @@ export default function Profile({ navigation }) {
</FormControl> */} </FormControl> */}
<FormControl> <FormControl>
<FormControl.Label>Nombre</FormControl.Label> <FormControl.Label>Nombre</FormControl.Label>
<TextInput style={styles.input} type="text" defaultValue={info.name} onChangeText={onHandleChange("name")} placeholder={name}/> <TextInput style={styles.input} type="text" onChangeText={onHandleChange("name")} placeholder={name}/>
</FormControl> </FormControl>
<FormControl> <FormControl>
<FormControl.Label>Apellido</FormControl.Label> <FormControl.Label>Apellido</FormControl.Label>
<TextInput style={styles.input} type="text" defaultValue={info.last_name} onChangeText={onHandleChange("last_name") }placeholder={apellido} /> <TextInput style={styles.input} type="text" onChangeText={onHandleChange("last_name") } placeholder={apellido} />
</FormControl> </FormControl>
<FormControl> <FormControl>
<FormControl.Label>Correo electrónico</FormControl.Label> <FormControl.Label>Correo electrónico</FormControl.Label>
<TextInput style={styles.input} type="text" defaultValue={info.email} onChangeText={onHandleChange("email") } placeholder={email}/> <TextInput style={styles.input} type="text" onChangeText={onHandleChange("email") } placeholder={email}/>
</FormControl> </FormControl>
<Button mt="2" backgroundColor="orange.300" onPress={() => updateInfo()}> <Button disabled={disable} mt="2" backgroundColor="orange.300" onPress={() => updateInfo()}>
Actualizar Actualizar
</Button> </Button>
<TouchableOpacity disabled={disable}>
<Button disabled={disable} mt="6" colorScheme="error" onPress={() => navigation.navigate('Iniciar Sesión')}> <Button mt="6" colorScheme="error" onPress={() => navigation.navigate('Iniciar Sesión')}>
Cerrar sesión Cerrar sesión
</Button> </Button>
</TouchableOpacity>
</VStack> </VStack>
</Box> </Box>