katoikia-app/mobile-ui/components/Profile.js

57 lines
1.5 KiB
JavaScript
Raw Permalink Normal View History

2022-08-17 16:36:33 +00:00
import React from "react";
import {
2022-08-17 21:08:38 +00:00
Box,
Heading,
VStack,
FormControl,
Input,
Button,
Center
2022-08-17 16:36:33 +00:00
} from "native-base";
2022-08-17 22:47:48 +00:00
export default function Profile({navigation}){
2022-08-17 16:36:33 +00:00
return (
2022-08-17 21:08:38 +00:00
<Center>
<Box safeArea p="2" w="90%" maxW="290" py="8">
<Heading size="lg" color="coolGray.800" _dark={{
color: "warmGray.50"
}} fontWeight="semibold">
2022-08-17 22:47:48 +00:00
Katoikia
2022-08-17 21:08:38 +00:00
</Heading>
<Heading mt="1" color="coolGray.600" _dark={{
color: "warmGray.200"
}} fontWeight="medium" size="xs">
2022-08-17 22:47:48 +00:00
Modifique sus datos
2022-08-17 21:08:38 +00:00
</Heading>
<VStack space={3} mt="5">
<FormControl>
<FormControl.Label>Nombre</FormControl.Label>
2022-08-17 22:47:48 +00:00
<Input type="text"/>
2022-08-17 21:08:38 +00:00
</FormControl>
<FormControl>
<FormControl.Label>Correo Electrónico</FormControl.Label>
2022-08-17 22:47:48 +00:00
<Input type="text" />
2022-08-17 21:08:38 +00:00
</FormControl>
<FormControl>
<FormControl.Label>Teléfono</FormControl.Label>
2022-08-17 22:47:48 +00:00
<Input type="text" />
2022-08-17 21:08:38 +00:00
</FormControl>
<FormControl>
<FormControl.Label>Contraseña actual</FormControl.Label>
<Input type="password" />
</FormControl>
<Button mt="2" backgroundColor="orange.300">
Actualizar
</Button>
2022-08-17 22:47:48 +00:00
<Button mt="6" colorScheme="error" onPress={() => navigation.navigate('Inicio')}>
2022-08-17 21:08:38 +00:00
Cerrar sesión
</Button>
</VStack>
</Box>
</Center>
2022-08-17 16:36:33 +00:00
)
}