Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1 | Rev 4662 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1819
Línea 4... Línea 4...
4
  const [query, setQuery] = useState("");
4
  const [query, setQuery] = useState("");
5
  const [addresObject, setAddressObject] = useState({});
5
  const [addresObject, setAddressObject] = useState({});
6
  const autoCompleteRef = useRef(null);
6
  const autoCompleteRef = useRef(null);
7
  const [error, setError] = useState("");
7
  const [error, setError] = useState("");
Línea 8... Línea 8...
8
 
8
 
Línea 9... Línea 9...
9
  const { onGetAddress, settedQuery } = props;
9
  const { onGetAddress, settedQuery, placeholder = 'Ubicación' } = props;
10
 
10
 
11
  useEffect(() => {
11
  useEffect(() => {
Línea 22... Línea 22...
22
      <input
22
      <input
23
        type="text"
23
        type="text"
24
        id="location_search"
24
        id="location_search"
25
        name="location_search"
25
        name="location_search"
26
        className="form-control"
26
        className="form-control"
27
        placeholder="Ubicación"
27
        placeholder={placeholder}
28
        ref={autoCompleteRef}
28
        ref={autoCompleteRef}
29
        onChange={(event) => {
29
        onChange={(event) => {
30
          setAddressObject({});
30
          setAddressObject({});
31
          setQuery(event.target.value);
31
          setQuery(event.target.value);
32
        }}
32
        }}