diff --git a/src/app/screens/PluviometerSharingDataScreen.js b/src/app/screens/PluviometerSharingDataScreen.js index dc5e761..57d57dd 100644 --- a/src/app/screens/PluviometerSharingDataScreen.js +++ b/src/app/screens/PluviometerSharingDataScreen.js @@ -23,7 +23,7 @@ const validationSchema = Yup.object().shape({ pluviometer: Yup.number() .required("Campo obrigatório") .min(0, "O valor deve ser maior ou igual a 0.") - .max(10000) + .max(999) .label("pluviometer"), //data: Yup.string().required("Campo obrigatório. Por favor, selecione a data"), images: Yup.array(), @@ -65,12 +65,12 @@ function PluviometerSharingDataScreen(props) { icon: "success", type: "success", }); - props.navigation.goBack(null); + props.navigation.navigate("Home"); }} validationSchema={validationSchema} > - Quantidade de chuva: + Quantidade de chuva (mm): {}, }); - props.navigation.goBack(null); + props.navigation.navigate("Home"); }} validationSchema={validationSchema} > diff --git a/src/app/screens/RiverFloodSharingDataScreen.js b/src/app/screens/RiverFloodSharingDataScreen.js index 3db2023..d7fc4ba 100644 --- a/src/app/screens/RiverFloodSharingDataScreen.js +++ b/src/app/screens/RiverFloodSharingDataScreen.js @@ -66,7 +66,7 @@ function RiverFloodSharingDataScreen(props) { icon: "success", type: "success", }); - props.navigation.goBack(null); + props.navigation.navigate("Home"); }} validationSchema={validationSchema} > diff --git a/src/app/screens/SharingFloodZonesScreen.js b/src/app/screens/SharingFloodZonesScreen.js index dee226a..a771fc3 100644 --- a/src/app/screens/SharingFloodZonesScreen.js +++ b/src/app/screens/SharingFloodZonesScreen.js @@ -63,7 +63,7 @@ function SharingFloodZonesScreen(props) { icon: "success", type: "success", }); - props.navigation.goBack(null); + props.navigation.navigate("Home"); }} validationSchema={validationSchema} >