|
|
@ -5,6 +5,10 @@ import colors from "../config/colors"; |
|
|
|
import Button from "../components/Button"; |
|
|
|
import { MaterialCommunityIcons } from "@expo/vector-icons"; |
|
|
|
import { AuthContext } from "../auth/context"; |
|
|
|
import authStorage from "../auth/storage"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
Form, |
|
|
|
SubmitButton, |
|
|
@ -13,6 +17,7 @@ import { |
|
|
|
} from "../components/forms"; |
|
|
|
import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view"; |
|
|
|
import ConfirmationModal from "../components/ConfirmationModal"; |
|
|
|
import {userPersonalData} from "../api/auth"; |
|
|
|
|
|
|
|
function Header() { |
|
|
|
return ( |
|
|
@ -38,12 +43,20 @@ function Header() { |
|
|
|
} |
|
|
|
|
|
|
|
function Institution({ user, institutionRole }) { |
|
|
|
var institutionMap = { |
|
|
|
E: "Escola", |
|
|
|
D: "Defesa Civil", |
|
|
|
N: "Não governamental", |
|
|
|
O: "Outra", |
|
|
|
N: "Nenhuma" |
|
|
|
}; |
|
|
|
|
|
|
|
return ( |
|
|
|
<View style={{ marginTop: 24, marginBottom: 24 }}> |
|
|
|
<Text style={styles.label}>Tippo de instituição: </Text> |
|
|
|
<View style={{ flexDirection: "row" }}> |
|
|
|
<MaterialCommunityIcons name="bank" size={30} color={colors.primary} /> |
|
|
|
<Text style={styles.subText}>{user.institutionType}</Text> |
|
|
|
<Text style={styles.subText}>{institutionMap[user.institutiontype]}</Text> |
|
|
|
</View> |
|
|
|
|
|
|
|
<Text style={[styles.label, { marginTop: 24 }]}> |
|
|
@ -51,7 +64,7 @@ function Institution({ user, institutionRole }) { |
|
|
|
</Text> |
|
|
|
<View style={{ flexDirection: "row" }}> |
|
|
|
<MaterialCommunityIcons name="bank" size={30} color={colors.primary} /> |
|
|
|
<Text style={styles.subText}>{user.institutionName}</Text> |
|
|
|
<Text style={styles.subText}>{user.institution}</Text> |
|
|
|
</View> |
|
|
|
|
|
|
|
<Text style={[styles.label, { marginTop: 24 }]}> |
|
|
|