Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5488 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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'
5473 stevensc 15
 
16
const View = ({
17
  userIdEncrypted,
18
  cover,
19
  overview,
20
  userExperiences,
21
  userEducations,
22
  formatted_address,
23
  months,
24
  userLanguages,
25
  userSkills,
26
  userAptitudes,
27
  userHobbiesAndInterests,
28
  CancelConnectionUrl,
29
  RequestConnectionUrl,
30
  profileId,
31
  labels,
32
  ...profileProps
33
}) => {
34
  const dispatch = useDispatch()
35
 
36
  useEffect(() => {
37
    dispatch(setIntlLabels(labels))
38
  }, [])
39
 
40
  return (
41
    <>
42
      <section className="cover-sec">
43
        <img
44
          id="user-cover-img"
45
          src={`/storage/type/user-cover/code/${userIdEncrypted}/${
46
            cover ? `filename/${cover}` : ''
47
          }`}
48
          alt=""
49
        />
50
      </section>
51
      <main className="main-section-data container px-0">
52
        <ProfileInfo
53
          {...profileProps}
54
          id={userIdEncrypted}
55
          cancelUrl={CancelConnectionUrl}
56
          connectUrl={RequestConnectionUrl}
57
        />
58
        <section className="feed-section">
5488 stevensc 59
          <Overview overview={overview} />
60
          <Experiences experiences={userExperiences} months={months} />
61
          <Educations educations={userEducations} />
62
          <Location address={formatted_address} />
63
          <Languages languages={userLanguages} />
64
          <Skills skills={userSkills} />
5489 stevensc 65
          <Aptitudes aptitudes={userAptitudes} />
66
          <HobbiesAndInterests hobbiesAndInterest={userHobbiesAndInterests} />
5473 stevensc 67
        </section>
68
        <SuggestWidget
69
          url={`/helpers/people-viewed-profile/${profileId}`}
70
          btnLabelAccept="Ver perfil"
71
          title="Quien ha visitado esta perfil"
72
        />
73
      </main>
74
    </>
75
  )
76
}
77
 
78
export default View