Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1847 | Rev 1851 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1847 Rev 1849
Línea 5... Línea 5...
5
import useFetch from '@app/hooks/useFetch'
5
import useFetch from '@app/hooks/useFetch'
Línea 6... Línea 6...
6
 
6
 
7
import ProfileCard from '@app/components/profile/ProfileCard'
7
import ProfileCard from '@app/components/profile/ProfileCard'
8
import ExperiencesCard from '@app/components/profile/experiences/ExperiencesCard'
8
import ExperiencesCard from '@app/components/profile/experiences/ExperiencesCard'
-
 
9
import EducationsCard from '@app/components/profile/educations/EducationsCard'
-
 
10
import LocationCard from '@app/components/profile/location/LocationCard'
Línea 9... Línea 11...
9
import EducationsCard from '@app/components/profile/educations/EducationsCard'
11
import LanguagesCard from '@app/components/profile/languages/LanguagesCard'
Línea 10... Línea 12...
10
 
12
 
11
import '../../styles/profile/profile.scss'
13
import '../../styles/profile/profile.scss'
12
 
14
 
Línea 13... Línea 15...
13
const View = () => {
15
const View = () => {
14
  const { uuid } = useParams()
16
  const { uuid } = useParams()
15
  const { data: profile } = useFetch(`/profile/my-profiles/edit/${uuid}`)
17
  const { data: profile } = useFetch(`/profile/my-profiles/edit/${uuid}`)
16
 
18
 
17
  /*  const {
19
  const {
18
    user_experiences,
20
    user_experiences,
19
    user_educations,
21
    user_educations,
20
    user_hobbies_and_interests,
22
    // user_hobbies_and_interests,
21
    user_skills,
23
    // user_skills,
Línea 22... Línea 24...
22
    user_aptitudes,
24
    // user_aptitudes,
23
    user_languages,
25
    user_languages,
24
    formatted_address
26
    formatted_address
25
  } = profile */
27
  } = profile
Línea 45... Línea 47...
45
            uuid={profile.user_uuid}
47
            uuid={profile.user_uuid}
46
            image={profile.image}
48
            image={profile.image}
47
            cover={profile.cover}
49
            cover={profile.cover}
48
          />
50
          />
Línea 49... Línea -...
49
 
-
 
50
          <ExperiencesCard
51
 
51
            experiences={profile.user_experiences}
-
 
52
            uuid={uuid}
-
 
53
            edit
-
 
Línea -... Línea 52...
-
 
52
          <ExperiencesCard experiences={user_experiences} uuid={uuid} edit />
-
 
53
 
-
 
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} />
54
          />
66
          </ProfileWidget>
55
 
67
 
-
 
68
          <ProfileWidget
56
          <EducationsCard
69
            title={labels.aptitudes}
-
 
70
            onEdit={() => setModalShow('Aptitudes')}
-
 
71
            justEdit
-
 
72
          >
-
 
73
            <TagsList tags={aptitudes} />
-
 
74
          </ProfileWidget>
-
 
75
 
-
 
76
          <ProfileWidget
57
            educations={profile.user_educations}
77
            title={labels.hobbies_and_interests}
58
            uuid={uuid}
78
            onEdit={() => setModalShow('Hobbies e Intereses')}
-
 
79
            justEdit
-
 
80
          >
59
            edit
81
            <TagsList tags={hobbiesAndInterests} />
60
          />
82
          </ProfileWidget> */}
61
        </Grid>
83
        </Grid>
62
      </Grid>
84
      </Grid>
63
    </Container>
85
    </Container>