Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2074 Rev 2075
Línea 11... Línea 11...
11
 
11
 
Línea 12... Línea 12...
12
import { axios } from '../../utils'
12
import { axios } from '../../utils'
13
 
13
 
-
 
14
import Input from '../UI/inputs/input'
Línea 14... Línea 15...
14
import Input from '../UI/inputs/input'
15
import Modal from '../UI/modal/Modal'
15
import Modal from '../UI/modal/Modal'
16
import useDebounce from '@app/hooks/useDebounce'
16
 
17
 
-
 
18
const StartConversationModal = ({ show, setConversation, onClose }) => {
17
const StartConversationModal = ({ show, setConversation, onClose }) => {
19
  const [users, setUsers] = useState([])
Línea 18... Línea 20...
18
  const [users, setUsers] = useState([])
20
  const [search, setSearch] = useState('')
19
  const [search, setSearch] = useState('')
21
  const debouncedSearch = useDebounce(search, 500)
20
  const labels = useSelector(({ intl }) => intl.labels)
22
  const labels = useSelector(({ intl }) => intl.labels)
Línea 40... Línea 42...
40
 
42
 
41
    onClose()
43
    onClose()
Línea 42... Línea 44...
42
  }
44
  }
43
 
45
 
44
  useEffect(() => {
46
  useEffect(() => {
Línea 45... Línea 47...
45
    searchUsers(search)
47
    searchUsers(debouncedSearch)
46
  }, [search])
48
  }, [debouncedSearch])
47
 
49
 
48
  return (
50
  return (
49
    <Modal title={labels.create_inmail} show={show} onClose={onClose}>
-
 
50
      <Input
51
    <Modal title={labels.create_inmail} show={show} onClose={onClose}>
51
        label={labels.write_name}
52
      <Input
52
        name='search-contact'
53
        label={labels.write_name}
53
        placeholder={labels.write_person_name}
54
        placeholder={labels.write_person_name}