Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev Autor Línea Nro. Línea
1847 stevensc 1
import React from 'react'
743 stevensc 2
import { useParams } from 'react-router-dom'
956 stevensc 3
import { Container, Grid } from '@mui/material'
4
 
1847 stevensc 5
import useFetch from '@app/hooks/useFetch'
963 stevensc 6
 
1847 stevensc 7
import ProfileCard from '@app/components/profile/ProfileCard'
8
import ExperiencesCard from '@app/components/profile/experiences/ExperiencesCard'
9
import EducationsCard from '@app/components/profile/educations/EducationsCard'
1849 stevensc 10
import LocationCard from '@app/components/profile/location/LocationCard'
11
import LanguagesCard from '@app/components/profile/languages/LanguagesCard'
5 stevensc 12
 
956 stevensc 13
import '../../styles/profile/profile.scss'
14
 
5 stevensc 15
const View = () => {
743 stevensc 16
  const { uuid } = useParams()
1847 stevensc 17
  const { data: profile } = useFetch(`/profile/my-profiles/edit/${uuid}`)
5 stevensc 18
 
1849 stevensc 19
  const {
1847 stevensc 20
    user_experiences,
21
    user_educations,
1849 stevensc 22
    // user_hobbies_and_interests,
23
    // user_skills,
24
    // user_aptitudes,
1847 stevensc 25
    user_languages,
26
    formatted_address
1849 stevensc 27
  } = profile
5 stevensc 28
 
29
  return (
1847 stevensc 30
    <Container as='main' sx={{ p: 0 }}>
31
      <Grid container spacing={2}>
32
        <Grid
33
          item
34
          xs={12}
35
          sx={{
36
            display: 'flex',
37
            flexDirection: 'column',
38
            gap: 1
39
          }}
40
        >
41
          <ProfileCard
42
            {...profile}
43
            sizes={{
44
              image: profile.image_size_profile,
45
              cover: profile.image_size_cover
46
            }}
47
            uuid={profile.user_uuid}
48
            image={profile.image}
49
            cover={profile.cover}
50
          />
956 stevensc 51
 
1849 stevensc 52
          <ExperiencesCard experiences={user_experiences} uuid={uuid} edit />
956 stevensc 53
 
1849 stevensc 54
          <EducationsCard educations={user_educations} uuid={uuid} edit />
55
 
56
          <LocationCard location={formatted_address} uuid={uuid} edit />
57
 
58
          <LanguagesCard languages={user_languages} uuid={uuid} edit />
59
 
60
          {/*           <ProfileWidget
61
            title={labels.skills}
62
            onEdit={() => setModalShow('Habilidades')}
63
            justEdit
64
          >
65
            <TagsList tags={skills} />
66
          </ProfileWidget>
67
 
68
          <ProfileWidget
69
            title={labels.aptitudes}
70
            onEdit={() => setModalShow('Aptitudes')}
71
            justEdit
72
          >
73
            <TagsList tags={aptitudes} />
74
          </ProfileWidget>
75
 
76
          <ProfileWidget
77
            title={labels.hobbies_and_interests}
78
            onEdit={() => setModalShow('Hobbies e Intereses')}
79
            justEdit
80
          >
81
            <TagsList tags={hobbiesAndInterests} />
82
          </ProfileWidget> */}
956 stevensc 83
        </Grid>
1847 stevensc 84
      </Grid>
85
    </Container>
743 stevensc 86
  )
87
}
5 stevensc 88
 
743 stevensc 89
export default View