Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2780 Rev 2865
Línea 1... Línea 1...
1
import React, { useEffect } from 'react'
1
import React, { useEffect } from 'react'
2
import { Place } from '@mui/icons-material'
2
import { Place } from '@mui/icons-material'
3
import { InputAdornment, TextField } from '@mui/material'
-
 
Línea 4... Línea 3...
4
 
3
 
-
 
4
import { useLocationAutocomplete } from '@hooks'
Línea 5... Línea 5...
5
import { useLocationAutocomplete } from '@hooks'
5
import Input from './Input'
6
 
6
 
7
const UbicationInput = ({
7
const UbicationInput = ({
8
  onGetAddress = () => {},
8
  onGetAddress = () => {},
Línea 16... Línea 16...
16
  useEffect(() => {
16
  useEffect(() => {
17
    onGetAddress(address)
17
    onGetAddress(address)
18
  }, [address])
18
  }, [address])
Línea 19... Línea 19...
19
 
19
 
20
  return (
20
  return (
21
    <TextField
21
    <Input
22
      type='text'
22
      type='text'
23
      inputRef={ref}
23
      inputRef={ref}
24
      onChange={onChange}
24
      onChange={onChange}
25
      placeholder={placeholder}
25
      placeholder={placeholder}
26
      defaultValue={settedQuery}
-
 
27
      fullWidth
26
      defaultValue={settedQuery}
28
      helperText={error || addressError}
-
 
29
      error={Boolean(error || addressError)}
-
 
30
      InputProps={{
-
 
31
        startAdornment: (
-
 
32
          <InputAdornment position='start'>
27
      error={error || addressError}
33
            <Place />
-
 
34
          </InputAdornment>
-
 
35
        )
-
 
36
      }}
28
      icon={<Place />}
37
    />
29
    />
38
  )
30
  )
Línea 39... Línea 31...
39
}
31
}