Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6992 Rev 7006
Línea 5... Línea 5...
5
import SearchInput from '../../../UI/SearchInput'
5
import SearchInput from '../../../UI/SearchInput'
Línea 6... Línea 6...
6
 
6
 
7
const NavSearch = () => {
7
const NavSearch = () => {
Línea 8... Línea 8...
8
  const history = useHistory()
8
  const history = useHistory()
Línea 9... Línea 9...
9
 
9
 
10
  const { handleSubmit, register, setValue } = useForm()
10
  const { handleSubmit, register, setValue, reset } = useForm()
-
 
11
 
11
 
12
  const onSubmit = handleSubmit(({ keyword }) => {
Línea 12... Línea 13...
12
  const onSubmit = handleSubmit(({ keyword }) => {
13
    history.replace(`/search/entity/user?keyword=${keyword}`)
13
    history.replace(`/search/entity/user?keyword=${keyword}`)
14
    reset()
14
  })
15
  })