|
|
@ -56,11 +56,11 @@ function Institution({ user, institutionRole }) { |
|
|
|
|
|
|
|
return ( |
|
|
|
<View style={{ marginTop: 24, marginBottom: 24 }}> |
|
|
|
<Text style={styles.label}>Tippo de instituição: </Text> |
|
|
|
<Text style={styles.label}>Tipo de instituição: </Text> |
|
|
|
<View style={{ flexDirection: "row" }}> |
|
|
|
<MaterialCommunityIcons name="bank" size={30} color={colors.primary} /> |
|
|
|
<Text style={styles.subText}> |
|
|
|
{institutionMap[user.institutiontype]} |
|
|
|
{user.institutiontype ? institutionMap[user.institutiontype] : "Não informado"} |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
|
|
|
@ -69,7 +69,7 @@ function Institution({ user, institutionRole }) { |
|
|
|
</Text> |
|
|
|
<View style={{ flexDirection: "row" }}> |
|
|
|
<MaterialCommunityIcons name="bank" size={30} color={colors.primary} /> |
|
|
|
<Text style={styles.subText}>{user.institution}</Text> |
|
|
|
<Text style={styles.subText}>{user.institution ? user.institution : "Não informado"}</Text> |
|
|
|
</View> |
|
|
|
|
|
|
|
<Text style={[styles.label, { marginTop: 24 }]}> |
|
|
@ -87,9 +87,6 @@ function Institution({ user, institutionRole }) { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
// 950ebd56-7acc-4b45-9366-23a0f814f3f2
|
|
|
|
|
|
|
|
// 1199990987
|
|
|
|
|
|
|
|
function ValidateCode({ user }) { |
|
|
|
return ( |
|
|
@ -149,7 +146,7 @@ async function processOnSubmit(navigation, form, instRole, setShowLog) { |
|
|
|
export default function ActivateInstitutionCode({ navigation }) { |
|
|
|
const { user, _ } = useContext(AuthContext); |
|
|
|
// FIXME: wpdAuth has errors while giving /me data for ROLE_INSTITUTION
|
|
|
|
user.role = "ROLE_CLIENT" |
|
|
|
// user.role = "ROLE_CLIENT"
|
|
|
|
// console.log(user)
|
|
|
|
|
|
|
|
const initialState = { show: false, message: true }; |
|
|
|