| Línea 1... |
Línea 1... |
| 1 |
import React, { useState, useEffect } from 'react'
|
1 |
import React, { useState, useEffect } from 'react'
|
| 2 |
import { useDispatch, useSelector } from 'react-redux'
|
2 |
import { useDispatch, useSelector } from 'react-redux'
|
| 3 |
import { addNotification } from '../../redux/notification/notification.actions'
|
3 |
import { addNotification } from '../../redux/notification/notification.actions'
|
| 4 |
import { Col, Container, Row } from 'react-bootstrap'
|
4 |
import { Col, Container, Row } from 'react-bootstrap'
|
| 5 |
import { useHistory, useLocation, useRouteMatch } from 'react-router-dom'
|
5 |
import { useHistory, useLocation } from 'react-router-dom'
|
| 6 |
import { axios, debounce } from '../../utils'
|
6 |
import { axios, debounce } from '../../utils'
|
| 7 |
import SearchIcon from '@mui/icons-material/Search'
|
7 |
import SearchIcon from '@mui/icons-material/Search'
|
| Línea 8... |
Línea 8... |
| 8 |
|
8 |
|
| 9 |
import Input from 'components/UI/Input'
|
9 |
import Input from 'components/UI/Input'
|
| Línea 66... |
Línea 66... |
| 66 |
params.set('page', `${currentPage}`)
|
66 |
params.set('page', `${currentPage}`)
|
| 67 |
history.replace(`${pathname}?${params.toString()}`)
|
67 |
history.replace(`${pathname}?${params.toString()}`)
|
| 68 |
}
|
68 |
}
|
| Línea 69... |
Línea 69... |
| 69 |
|
69 |
|
| - |
|
70 |
const onChangeCategory = (newCategory = 'user') => {
|
| 70 |
const onChangeCategory = (newCategory = 'user') => {
|
71 |
console.log(params)
|
| 71 |
params.set('page', '1')
|
72 |
params.set('page', '1')
|
| 72 |
history.replace(`/search/entity/${newCategory}?${params.toString()}`)
|
73 |
history.replace(`/search/entity/${newCategory}?${params.toString()}`)
|
| Línea 73... |
Línea 74... |
| 73 |
}
|
74 |
}
|