|
@ -112,15 +112,6 @@ function AccountScreen(props) { |
|
|
props.navigation.navigate("PluviometerRegister"); |
|
|
props.navigation.navigate("PluviometerRegister"); |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
icon: "account", |
|
|
|
|
|
show: !isRegistered, |
|
|
|
|
|
IconProvider: MaterialCommunityIcons, |
|
|
|
|
|
title: "Cadastre-se", |
|
|
|
|
|
onPress: () => { |
|
|
|
|
|
setUser(false); |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
icon: "bank", |
|
|
icon: "bank", |
|
|
show: showActivation(), |
|
|
show: showActivation(), |
|
@ -149,14 +140,15 @@ function AccountScreen(props) { |
|
|
setShowLog(true); |
|
|
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 ( |
|
|
return ( |
|
|