| 5475 |
stevensc |
1 |
import React, { useEffect } from 'react'
|
| 5473 |
stevensc |
2 |
import { useDispatch } from 'react-redux'
|
|
|
3 |
import { setIntlLabels } from '../../../../redux/intl/intl.action'
|
| 5475 |
stevensc |
4 |
|
| 5473 |
stevensc |
5 |
import SuggestWidget from '../../../../shared/helpers/my-groups-helper/SuggestWidget'
|
|
|
6 |
import ProfileInfo from '../../../components/ProfileInfo'
|
|
|
7 |
import Overview from '../../../components/overview/Overview'
|
| 5475 |
stevensc |
8 |
import Experiences from '../../../components/experiences/Experiences'
|
| 5478 |
stevensc |
9 |
import Educations from '../../../components/educations/Educations'
|
| 5483 |
stevensc |
10 |
import Location from '../../../components/location/Location'
|
|
|
11 |
import Languages from '../../../components/languages/Languages'
|
| 5488 |
stevensc |
12 |
import Skills from '../../../components/skills/Skills'
|
| 5489 |
stevensc |
13 |
import Aptitudes from '../../../components/aptitudes/Aptitudes'
|
|
|
14 |
import HobbiesAndInterests from '../../../components/hobbies-and-interests/HobbiesAndInterests'
|
| 5490 |
stevensc |
15 |
import Cover from '../../../../shared/cover/Cover'
|
| 5473 |
stevensc |
16 |
|
|
|
17 |
const View = ({
|
|
|
18 |
userIdEncrypted,
|
|
|
19 |
cover,
|
|
|
20 |
overview,
|
|
|
21 |
userExperiences,
|
|
|
22 |
userEducations,
|
|
|
23 |
formatted_address,
|
|
|
24 |
months,
|
|
|
25 |
userLanguages,
|
|
|
26 |
userSkills,
|
|
|
27 |
userAptitudes,
|
|
|
28 |
userHobbiesAndInterests,
|
|
|
29 |
CancelConnectionUrl,
|
|
|
30 |
RequestConnectionUrl,
|
|
|
31 |
profileId,
|
|
|
32 |
labels,
|
|
|
33 |
...profileProps
|
|
|
34 |
}) => {
|
|
|
35 |
const dispatch = useDispatch()
|
|
|
36 |
|
|
|
37 |
useEffect(() => {
|
|
|
38 |
dispatch(setIntlLabels(labels))
|
|
|
39 |
}, [])
|
|
|
40 |
|
|
|
41 |
return (
|
|
|
42 |
<>
|
| 5490 |
stevensc |
43 |
<Cover cover={cover} id={userIdEncrypted} type="user" />
|
| 5473 |
stevensc |
44 |
<main className="main-section-data container px-0">
|
|
|
45 |
<ProfileInfo
|
|
|
46 |
{...profileProps}
|
|
|
47 |
id={userIdEncrypted}
|
|
|
48 |
cancelUrl={CancelConnectionUrl}
|
|
|
49 |
connectUrl={RequestConnectionUrl}
|
|
|
50 |
/>
|
|
|
51 |
<section className="feed-section">
|
| 5488 |
stevensc |
52 |
<Overview overview={overview} />
|
|
|
53 |
<Experiences experiences={userExperiences} months={months} />
|
|
|
54 |
<Educations educations={userEducations} />
|
|
|
55 |
<Location address={formatted_address} />
|
|
|
56 |
<Languages languages={userLanguages} />
|
|
|
57 |
<Skills skills={userSkills} />
|
| 5489 |
stevensc |
58 |
<Aptitudes aptitudes={userAptitudes} />
|
|
|
59 |
<HobbiesAndInterests hobbiesAndInterest={userHobbiesAndInterests} />
|
| 5473 |
stevensc |
60 |
</section>
|
|
|
61 |
<SuggestWidget
|
|
|
62 |
url={`/helpers/people-viewed-profile/${profileId}`}
|
|
|
63 |
btnLabelAccept="Ver perfil"
|
|
|
64 |
title="Quien ha visitado esta perfil"
|
|
|
65 |
/>
|
|
|
66 |
</main>
|
|
|
67 |
</>
|
|
|
68 |
)
|
|
|
69 |
}
|
|
|
70 |
|
|
|
71 |
export default View
|