Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5490 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 5490 Rev 5491
Línea 1... Línea 1...
1
/* eslint-disable react/prop-types */
1
/* eslint-disable react/prop-types */
2
import React from 'react'
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/cover-section/CoverSection'
3
import Cover from '../../../../shared/cover/Cover'
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'
4
import Overview from '../../../components/overview/Overview'
15
import Skills from '../skills/Skills'
-
 
Línea 16... Línea 5...
16
 
5
 
17
const Edit = ({
6
const Edit = ({
18
  userIdEncrypted,
7
  userIdEncrypted,
19
  userProfileIdEncrypted,
8
  userProfileIdEncrypted,
Línea 45... Línea 34...
45
  hobbiesAndInterestsOptions,
34
  hobbiesAndInterestsOptions,
46
  addNotification, // redux action
35
  addNotification, // redux action
47
}) => {
36
}) => {
48
  return (
37
  return (
49
    <main>
38
    <main>
50
      <CoverSection
39
      <Cover
-
 
40
        type="user"
-
 
41
        isEdit
51
        cover={cover}
42
        cover={cover}
52
        entityId={userIdEncrypted}
-
 
53
        profileId={userProfileIdEncrypted}
43
        id={userProfileIdEncrypted}
54
        imageSizeCover={imageSizeCover}
44
        size={imageSizeCover}
55
        coverType={profileTypes.USER}
-
 
56
        addNotification={addNotification}
-
 
57
      />
45
      />
58
      <section className="container main-section-data">
46
      <section className="container main-section-data">
59
        <div className="main-left-sidebar">
47
        <div className="main-left-sidebar"></div>
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">
48
        <div className="feed-section">
75
          <div className="user-tab-sec rewivew">
-
 
76
            <h3>{fullName}</h3>
49
          <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}
50
          <Overview overview={overview} userId={userIdEncrypted} isEdit />
124
            addNotification={addNotification}
-
 
125
          />
-
 
126
        </div>
51
        </div>
127
        <div className="right-sidebar"></div>
52
        <div className="right-sidebar"></div>
128
      </section>
53
      </section>
129
    </main>
54
    </main>
130
  )
55
  )
131
}
56
}
Línea 132... Línea -...
132
 
-
 
133
const mapDispatchToProps = {
-
 
134
  addNotification: (notification) => addNotification(notification),
-
 
135
}
-
 
136
 
57