|
|
@ -112,15 +112,6 @@ function AccountScreen(props) { |
|
|
|
props.navigation.navigate("PluviometerRegister"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
icon: "account", |
|
|
|
show: !isRegistered, |
|
|
|
IconProvider: MaterialCommunityIcons, |
|
|
|
title: "Cadastre-se", |
|
|
|
onPress: () => { |
|
|
|
setUser(false); |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
icon: "bank", |
|
|
|
show: showActivation(), |
|
|
@ -149,14 +140,15 @@ function AccountScreen(props) { |
|
|
|
setShowLog(true); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// icon: "trash-can",
|
|
|
|
// IconProvider: MaterialCommunityIcons,
|
|
|
|
// title: "DESATIVAR CONTA",
|
|
|
|
// onPress: () => {
|
|
|
|
// console.log("7");
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
icon: "login", |
|
|
|
show: !isRegistered, |
|
|
|
IconProvider: MaterialCommunityIcons, |
|
|
|
title: "Entrar", |
|
|
|
onPress: () => { |
|
|
|
setUser(false); |
|
|
|
}, |
|
|
|
}, |
|
|
|
]; |
|
|
|
|
|
|
|
return ( |
|
|
|