| Línea 8... |
Línea 8... |
| 8 |
import SearchBar from '../../components/UI/SearchBar'
|
8 |
import SearchBar from '../../components/UI/SearchBar'
|
| 9 |
import ProfileItem from '../../components/profile/ProfileItem'
|
9 |
import ProfileItem from '../../components/profile/ProfileItem'
|
| 10 |
import TitleSection from '../../components/UI/TitleSection'
|
10 |
import TitleSection from '../../components/UI/TitleSection'
|
| 11 |
import EmptySection from '../../components/UI/EmptySection'
|
11 |
import EmptySection from '../../components/UI/EmptySection'
|
| 12 |
import PaginationComponent from '../../components/UI/PaginationComponent'
|
12 |
import PaginationComponent from '../../components/UI/PaginationComponent'
|
| - |
|
13 |
import LoaderContainer from '../../components/UI/LoaderContainer'
|
| Línea 13... |
Línea 14... |
| 13 |
|
14 |
|
| 14 |
const PeopleViewedMyProfilePage = () => {
|
15 |
const PeopleViewedMyProfilePage = () => {
|
| 15 |
const [peopleViewedMyProfile, setPeopleViewedMyProfile] = useState([])
|
16 |
const [peopleViewedMyProfile, setPeopleViewedMyProfile] = useState([])
|
| 16 |
const [loading, setLoading] = useState(false)
|
17 |
const [loading, setLoading] = useState(false)
|
| Línea 59... |
Línea 60... |
| 59 |
return (
|
60 |
return (
|
| 60 |
<main className="companies-info container">
|
61 |
<main className="companies-info container">
|
| 61 |
<TitleSection title={labels.who_has_seen_my_profile} />
|
62 |
<TitleSection title={labels.who_has_seen_my_profile} />
|
| 62 |
<SearchBar onChange={handleSearch} />
|
63 |
<SearchBar onChange={handleSearch} />
|
| 63 |
{loading ? (
|
64 |
{loading ? (
|
| - |
|
65 |
<LoaderContainer>
|
| 64 |
<Spinner />
|
66 |
<Spinner />
|
| - |
|
67 |
</LoaderContainer>
|
| 65 |
) : (
|
68 |
) : (
|
| 66 |
<ul className="companies-list">
|
69 |
<ul className="companies-list">
|
| 67 |
{peopleViewedMyProfile.length ? (
|
70 |
{peopleViewedMyProfile.length ? (
|
| 68 |
peopleViewedMyProfile.map(
|
71 |
peopleViewedMyProfile.map(
|
| 69 |
({ id, link_edit, link_delete, ...rest }) => (
|
72 |
({ id, link_edit, link_delete, ...rest }) => (
|