Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 593 Rev 981
Línea 5... Línea 5...
5
 
5
 
6
const UbicationInput = ({
6
const UbicationInput = ({
7
  onGetAddress = () => {},
7
  onGetAddress = () => {},
8
  settedQuery = '',
8
  settedQuery = '',
-
 
9
  placeholder = 'Ubicación',
9
  placeholder = 'Ubicación',
10
  onChange = () => {}
10
}) => {
11
}) => {
Línea 11... Línea 12...
11
  const { address, error, ref } = useLocationAutocomplete()
12
  const { address, error, ref } = useLocationAutocomplete()
12
 
13
 
13
  useEffect(() => {
14
  useEffect(() => {
Línea 14... Línea 15...
14
    onGetAddress(address)
15
    onGetAddress(address)
15
  }, [address])
16
  }, [address])
16
 
17
 
17
  return (
18
  return (
18
    <>
19
    <>
19
      <input
20
      <input
20
        type="text"
21
        type='text'
21
        id="location_search"
22
        id='location_search'
-
 
23
        name='location_search'
22
        name="location_search"
24
        className='form-control'
23
        className="form-control"
25
        ref={ref}
24
        ref={ref}
26
        onChange={onChange}
25
        placeholder={placeholder}
27
        placeholder={placeholder}
26
        defaultValue={settedQuery}
28
        defaultValue={settedQuery}