Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4250 Rev 5397
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import { useForm } from 'react-hook-form'
2
import { useForm } from 'react-hook-form'
Línea 3... Línea 3...
3
 
3
 
-
 
4
const SearchInput = () => {
-
 
5
  const { handleSubmit, register } = useForm()
Línea 4... Línea -...
4
const SearchInput = () => {
-
 
5
 
-
 
6
    const { handleSubmit, register } = useForm()
-
 
7
    const handleOnSubmit = (data) => window.location.replace(`/search/entity/user?keyword=${data.keyword}`)
6
  const handleOnSubmit = (data) => window.location.replace(`/search/entity/user?keyword=${data.keyword}`)
8
 
7
 
9
    return (
8
  return (
10
        <div className='searchInputContainer'>
9
        <div className='searchInputContainer'>
11
            <form onSubmit={handleSubmit(handleOnSubmit)}>
10
            <form onSubmit={handleSubmit(handleOnSubmit)}>
12
                <input
11
                <input
Línea 19... Línea 18...
19
                <button type="submit">
18
                <button type="submit">
20
                    <i className="la la-search" />
19
                    <i className="la la-search" />
21
                </button>
20
                </button>
22
            </form>
21
            </form>
23
        </div>
22
        </div>
24
    )
23
  )
25
}
24
}
Línea 26... Línea -...
26
 
-
 
27
export default SearchInput
25
 
-
 
26
export default SearchInput