Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
5473 stevensc 1
/* eslint-disable react/prop-types */
2
import React from 'react'
5493 stevensc 3
 
5491 stevensc 4
import Cover from '../../../../shared/cover/Cover'
5
import Overview from '../../../components/overview/Overview'
5493 stevensc 6
import Experiences from '../../../components/experiences/Experiences'
7
import Educations from '../../../components/educations/Educations'
8
import Location from '../../../components/location/Location'
9
import Languages from '../../../components/languages/Languages'
10
import Skills from '../../../components/skills/Skills'
11
import Aptitudes from '../../../components/aptitudes/Aptitudes'
12
import HobbiesAndInterests from '../../../components/hobbies-and-interests/HobbiesAndInterests'
5473 stevensc 13
 
5493 stevensc 14
const Edit = ({ profile }) => {
15
  const {
16
    profileId,
17
    cover,
18
    overview,
19
    formatted_address,
20
    experiences,
21
    educations,
22
    months,
23
    languages,
24
    skills,
25
    aptitudes,
26
    hobbiesAndInterests,
27
    sizes,
28
    options,
29
  } = profile
30
 
5473 stevensc 31
  return (
5492 stevensc 32
    <>
5491 stevensc 33
      <Cover
5493 stevensc 34
        isEdit
5491 stevensc 35
        type="user"
5473 stevensc 36
        cover={cover}
5493 stevensc 37
        profileId={profileId}
38
        id={profile.uuid}
39
        size={sizes.cover}
5473 stevensc 40
      />
5492 stevensc 41
      <main className="main-section-data container px-0">
5493 stevensc 42
        <aside className="main-left-sidebar"></aside>
5473 stevensc 43
        <div className="feed-section">
5493 stevensc 44
          <h3>{profile.fullName}</h3>
45
          <Overview isEdit overview={overview} userId={profile.uuid} />
46
          <Experiences
47
            isEdit
48
            experiences={experiences}
49
            userId={profile.uuid}
50
            companySizesOptions={options.companySizes}
51
            industriesOptions={options.industries}
52
            months={months}
53
          />
54
          <Educations isEdit educations={educations} userId={profile.uuid} />
55
          <Location isEdit address={formatted_address} userId={profile.uuid} />
56
          <Languages
57
            isEdit
58
            languages={languages}
59
            languagesOptions={options.languages}
60
            userId={profile.uuid}
61
          />
62
          <Skills
63
            isEdit
64
            skills={skills}
65
            skillsOptions={options.skills}
66
            userId={profile.uuid}
67
          />
68
          <Aptitudes
69
            isEdit
70
            aptitudes={aptitudes}
71
            aptitudesOptions={options.aptitudes}
72
            userId={profile.uuid}
73
          />
74
          <HobbiesAndInterests
75
            isEdit
76
            hobbiesAndInterest={hobbiesAndInterests}
77
            hobbiesAndInterestsOptions={options.hobbiesAndInterests}
78
            userId={profile.uuid}
79
          />
5473 stevensc 80
        </div>
5493 stevensc 81
        <aside className="right-sidebar"></aside>
5492 stevensc 82
      </main>
83
    </>
5473 stevensc 84
  )
85
}
86
 
5491 stevensc 87
export default Edit