From 81a464a2cb3278667282fd6e4ed30d06f2da9549 Mon Sep 17 00:00:00 2001 From: GabrielTrettel Date: Fri, 18 Dec 2020 13:13:03 -0300 Subject: [PATCH] Fixing bug in function definitions (inserting props as an argument) --- src/app/screens/PluviometerSharingDataScreen.js | 2 +- src/app/screens/RainSharingDataScreen.js | 2 +- src/app/screens/SharingFloodZonesScreen.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/screens/PluviometerSharingDataScreen.js b/src/app/screens/PluviometerSharingDataScreen.js index 09f0cea..7c7218a 100644 --- a/src/app/screens/PluviometerSharingDataScreen.js +++ b/src/app/screens/PluviometerSharingDataScreen.js @@ -20,7 +20,7 @@ const validationSchema = Yup.object().shape({ images: Yup.array().min(1, "Por favor, selecione uma imagem."), }); -function PluviometerSharingDataScreen() { +function PluviometerSharingDataScreen(props) { const location = useLocation(); var day = new Date().getDate(); diff --git a/src/app/screens/RainSharingDataScreen.js b/src/app/screens/RainSharingDataScreen.js index 7426faf..9ebd235 100644 --- a/src/app/screens/RainSharingDataScreen.js +++ b/src/app/screens/RainSharingDataScreen.js @@ -23,7 +23,7 @@ const validationSchema = Yup.object().shape({ const borderWidth = 4; -function RainSharingDataScreen() { +function RainSharingDataScreen(props) { const [rain, setRain] = useState(0); const location = useLocation(); diff --git a/src/app/screens/SharingFloodZonesScreen.js b/src/app/screens/SharingFloodZonesScreen.js index 52bd538..3737e09 100644 --- a/src/app/screens/SharingFloodZonesScreen.js +++ b/src/app/screens/SharingFloodZonesScreen.js @@ -32,7 +32,7 @@ const validationSchema = Yup.object().shape({ const screen_width = Dimensions.get("window").width; const borderWidth = 3; -function SharingFloodZonesScreen() { +function SharingFloodZonesScreen(props) { const [passable, setPassable] = useState(0); const location = useLocation();