| 5473 |
stevensc |
1 |
/* eslint-disable react/prop-types */
|
|
|
2 |
import React from 'react'
|
|
|
3 |
import { connect } from 'react-redux'
|
|
|
4 |
import { addNotification } from '../../../../redux/notification/notification.actions'
|
|
|
5 |
import { profileTypes } from '../../../../shared/profile/Profile.types'
|
|
|
6 |
import CoverSection from '../../../../shared/profile/edit/cover-section/CoverSection'
|
|
|
7 |
|
|
|
8 |
import Aptitudes from '../aptitudes/Aptitudes'
|
|
|
9 |
import Educations from '../educations/Educations'
|
|
|
10 |
import Experiences from '../experiences/Experiences'
|
|
|
11 |
import HobbiesAndInterests from '../hobbies-and-interests/HobbiesAndInterests'
|
|
|
12 |
import Languages from '../languages/Languages'
|
|
|
13 |
import Location from '../location/Location'
|
|
|
14 |
import Overview from '../overview/Overview'
|
|
|
15 |
import Skills from '../skills/Skills'
|
|
|
16 |
|
|
|
17 |
const Edit = ({
|
|
|
18 |
userIdEncrypted,
|
|
|
19 |
userProfileIdEncrypted,
|
|
|
20 |
cover,
|
|
|
21 |
image,
|
|
|
22 |
following,
|
|
|
23 |
follower,
|
|
|
24 |
facebook,
|
|
|
25 |
twitter,
|
|
|
26 |
instagram,
|
|
|
27 |
fullName,
|
|
|
28 |
overview,
|
|
|
29 |
userExperiences,
|
|
|
30 |
months,
|
|
|
31 |
userEducations,
|
|
|
32 |
formattedAddress,
|
|
|
33 |
userLanguages,
|
|
|
34 |
userSkills,
|
|
|
35 |
userAptitudes,
|
|
|
36 |
userHobbiesAndInterests,
|
|
|
37 |
imageSizeCover,
|
|
|
38 |
imageProfileCover,
|
|
|
39 |
companySizesOptions,
|
|
|
40 |
degreesOptions,
|
|
|
41 |
industriesOptions,
|
|
|
42 |
languagesOptions,
|
|
|
43 |
skillsOptions,
|
|
|
44 |
aptitudesOptions,
|
|
|
45 |
hobbiesAndInterestsOptions,
|
|
|
46 |
addNotification, // redux action
|
|
|
47 |
}) => {
|
|
|
48 |
return (
|
|
|
49 |
<main>
|
|
|
50 |
<CoverSection
|
|
|
51 |
cover={cover}
|
|
|
52 |
entityId={userIdEncrypted}
|
|
|
53 |
profileId={userProfileIdEncrypted}
|
|
|
54 |
imageSizeCover={imageSizeCover}
|
|
|
55 |
coverType={profileTypes.USER}
|
|
|
56 |
addNotification={addNotification}
|
|
|
57 |
/>
|
|
|
58 |
<section className="container main-section-data">
|
|
|
59 |
<div className="main-left-sidebar">
|
|
|
60 |
<ProfileInfo
|
|
|
61 |
entityId={userIdEncrypted}
|
|
|
62 |
profileId={userProfileIdEncrypted}
|
|
|
63 |
image={image}
|
|
|
64 |
following={following}
|
|
|
65 |
follower={follower}
|
|
|
66 |
facebook={facebook}
|
|
|
67 |
twitter={twitter}
|
|
|
68 |
instagram={instagram}
|
|
|
69 |
imageProfileCover={imageProfileCover}
|
|
|
70 |
addNotification={addNotification}
|
|
|
71 |
profileType={profileTypes.USER}
|
|
|
72 |
/>
|
|
|
73 |
</div>
|
|
|
74 |
<div className="feed-section">
|
|
|
75 |
<div className="user-tab-sec rewivew">
|
|
|
76 |
<h3>{fullName}</h3>
|
|
|
77 |
</div>
|
|
|
78 |
<Overview
|
|
|
79 |
overview={overview}
|
|
|
80 |
userIdEncrypted={userProfileIdEncrypted}
|
|
|
81 |
addNotification={addNotification}
|
|
|
82 |
/>
|
|
|
83 |
<Experiences
|
|
|
84 |
userExperiences={userExperiences}
|
|
|
85 |
months={months}
|
|
|
86 |
companySizesOptions={companySizesOptions}
|
|
|
87 |
industriesOptions={industriesOptions}
|
|
|
88 |
userIdEncrypted={userProfileIdEncrypted}
|
|
|
89 |
addNotification={addNotification}
|
|
|
90 |
/>
|
|
|
91 |
<Educations
|
|
|
92 |
userEducations={userEducations}
|
|
|
93 |
degreesOptions={degreesOptions}
|
|
|
94 |
userIdEncrypted={userProfileIdEncrypted}
|
|
|
95 |
addNotification={addNotification}
|
|
|
96 |
/>
|
|
|
97 |
<Location
|
|
|
98 |
formattedAddress={formattedAddress}
|
|
|
99 |
userIdEncrypted={userProfileIdEncrypted}
|
|
|
100 |
addNotification={addNotification}
|
|
|
101 |
/>
|
|
|
102 |
<Languages
|
|
|
103 |
userLanguages={userLanguages}
|
|
|
104 |
languagesOptions={languagesOptions}
|
|
|
105 |
userIdEncrypted={userProfileIdEncrypted}
|
|
|
106 |
addNotification={addNotification}
|
|
|
107 |
/>
|
|
|
108 |
<Skills
|
|
|
109 |
userSkills={userSkills}
|
|
|
110 |
skillsOptions={skillsOptions}
|
|
|
111 |
userIdEncrypted={userProfileIdEncrypted}
|
|
|
112 |
addNotification={addNotification}
|
|
|
113 |
/>
|
|
|
114 |
<Aptitudes
|
|
|
115 |
userAptitudes={userAptitudes}
|
|
|
116 |
aptitudesOptions={aptitudesOptions}
|
|
|
117 |
userIdEncrypted={userProfileIdEncrypted}
|
|
|
118 |
addNotification={addNotification}
|
|
|
119 |
/>
|
|
|
120 |
<HobbiesAndInterests
|
|
|
121 |
userHobbiesAndInterests={userHobbiesAndInterests}
|
|
|
122 |
hobbiesAndInterestsOptions={hobbiesAndInterestsOptions}
|
|
|
123 |
userIdEncrypted={userProfileIdEncrypted}
|
|
|
124 |
addNotification={addNotification}
|
|
|
125 |
/>
|
|
|
126 |
</div>
|
|
|
127 |
<div className="right-sidebar"></div>
|
|
|
128 |
</section>
|
|
|
129 |
</main>
|
|
|
130 |
)
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
const mapDispatchToProps = {
|
|
|
134 |
addNotification: (notification) => addNotification(notification),
|
|
|
135 |
}
|
|
|
136 |
|
|
|
137 |
export default connect(null, mapDispatchToProps)(Edit)
|