Browse Source

Merge branch 'main' of github.com:IGSD-UoW/WPD-MobileApp

master
GabrielTrettel 4 years ago
parent
commit
c100f66648
  1. 6
      src/app/screens/PluviometerSharingDataScreen.js
  2. 2
      src/app/screens/RainSharingDataScreen.js
  3. 2
      src/app/screens/RiverFloodSharingDataScreen.js
  4. 2
      src/app/screens/SharingFloodZonesScreen.js

6
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}
>
<View style={{ marginTop: 30, flex: 1 }}>
<Text style={styles.labelStyle}>Quantidade de chuva:</Text>
<Text style={styles.labelStyle}>Quantidade de chuva (mm):</Text>
<FormField
keyboardType="decimal-pad"
maxLength={200}

2
src/app/screens/RainSharingDataScreen.js

@ -56,7 +56,7 @@ function RainSharingDataScreen(props) {
type: "success",
onPress: () => {},
});
props.navigation.goBack(null);
props.navigation.navigate("Home");
}}
validationSchema={validationSchema}
>

2
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}
>

2
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}
>

Loading…
Cancel
Save