Browse Source

Fixing bug in function definitions (inserting props as an argument)

master
GabrielTrettel 4 years ago
parent
commit
81a464a2cb
  1. 2
      src/app/screens/PluviometerSharingDataScreen.js
  2. 2
      src/app/screens/RainSharingDataScreen.js
  3. 2
      src/app/screens/SharingFloodZonesScreen.js

2
src/app/screens/PluviometerSharingDataScreen.js

@ -20,7 +20,7 @@ const validationSchema = Yup.object().shape({
images: Yup.array().min(1, "Por favor, selecione uma imagem."), images: Yup.array().min(1, "Por favor, selecione uma imagem."),
}); });
function PluviometerSharingDataScreen() {
function PluviometerSharingDataScreen(props) {
const location = useLocation(); const location = useLocation();
var day = new Date().getDate(); var day = new Date().getDate();

2
src/app/screens/RainSharingDataScreen.js

@ -23,7 +23,7 @@ const validationSchema = Yup.object().shape({
const borderWidth = 4; const borderWidth = 4;
function RainSharingDataScreen() {
function RainSharingDataScreen(props) {
const [rain, setRain] = useState(0); const [rain, setRain] = useState(0);
const location = useLocation(); const location = useLocation();

2
src/app/screens/SharingFloodZonesScreen.js

@ -32,7 +32,7 @@ const validationSchema = Yup.object().shape({
const screen_width = Dimensions.get("window").width; const screen_width = Dimensions.get("window").width;
const borderWidth = 3; const borderWidth = 3;
function SharingFloodZonesScreen() {
function SharingFloodZonesScreen(props) {
const [passable, setPassable] = useState(0); const [passable, setPassable] = useState(0);
const location = useLocation(); const location = useLocation();

Loading…
Cancel
Save