Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 399 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 399 Rev 401
Línea 1... Línea 1...
1
import React, { useState, useEffect, useRef } from "react";
1
import React, { useState, useEffect, useRef } from "react";
-
 
2
import PlaceIcon from "@mui/icons-material/Place";
-
 
3
 
2
import FormErrorFeedback from "./FormErrorFeedback";
4
import FormErrorFeedback from "./FormErrorFeedback";
-
 
5
import Input from "./Input";
Línea 3... Línea 6...
3
 
6
 
4
const UbicationInput = ({
7
const UbicationInput = ({
5
  onGetAddress,
8
  onGetAddress,
6
  settedQuery,
9
  settedQuery,
Línea 64... Línea 67...
64
  useEffect(() => {
67
  useEffect(() => {
65
    onGetAddress(addresObject, query);
68
    onGetAddress(addresObject, query);
66
  }, [addresObject]);
69
  }, [addresObject]);
Línea 67... Línea 70...
67
 
70
 
68
  return (
71
  return (
69
    <React.Fragment>
72
    <>
70
      <input
73
      <Input
71
        type="text"
74
        type="text"
72
        id="location_search"
75
        id="location_search"
73
        name="location_search"
76
        name="location_search"
74
        className="form-control"
77
        className="form-control"
Línea 77... Línea 80...
77
        onChange={(event) => {
80
        onChange={(event) => {
78
          setAddressObject({});
81
          setAddressObject({});
79
          setQuery(event.target.value);
82
          setQuery(event.target.value);
80
        }}
83
        }}
81
        value={settedQuery || query}
84
        value={settedQuery || query}
-
 
85
        icon={PlaceIcon}
82
      />
86
      />
83
      {error && <FormErrorFeedback>{error}</FormErrorFeedback>}
87
      {error && <FormErrorFeedback>{error}</FormErrorFeedback>}
84
    </React.Fragment>
88
    </>
85
  );
89
  );
86
};
90
};
Línea 87... Línea 91...
87
 
91