Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5890 Rev 5891
Línea 1... Línea -...
1
/* eslint-disable camelcase */
-
 
2
/* eslint-disable indent */
-
 
3
/* eslint-disable react/prop-types */
-
 
4
import React, { useState } from 'react'
1
import React, { useState } from 'react'
5
import parse from 'html-react-parser'
2
import parse from 'html-react-parser'
6
import EditIcon from '@mui/icons-material/EditOutlined'
3
import EditIcon from '@mui/icons-material/EditOutlined'
7
import { axios } from '../../../../../../utils'
4
import { axios } from '../../../../../../utils'
8
import { useDispatch } from 'react-redux'
5
import { useDispatch } from 'react-redux'
Línea 19... Línea 16...
19
  fullName = '',
16
  fullName = '',
20
  overview = '',
17
  overview = '',
21
  formatted_address: formattedAddress = '',
18
  formatted_address: formattedAddress = '',
22
  total_connections: totalConnections,
19
  total_connections: totalConnections,
23
  showContact = false,
20
  showContact = false,
24
  userExperiences = [],
21
  experiences = [],
25
  linkInmail = '',
22
  linkInmail = '',
26
  CancelConnectionUrl = '',
23
  CancelConnectionUrl = '',
27
  RequestConnectionUrl = '',
24
  RequestConnectionUrl = '',
28
  image = '',
25
  image = '',
29
  cover = '',
26
  cover = '',
Línea 32... Línea 29...
32
  follower,
29
  follower,
33
  following,
30
  following,
34
  facebook,
31
  facebook,
35
  twitter,
32
  twitter,
36
  instagram,
33
  instagram,
37
  imageProfileCover,
-
 
38
  imageSizeCover,
34
  sizes,
39
  view_following,
35
  view_following,
40
  view_total_connections,
36
  view_total_connections,
41
}) => {
37
}) => {
42
  const [isAdded, setIsAdded] = useState(!RequestConnectionUrl)
38
  const [isAdded, setIsAdded] = useState(!RequestConnectionUrl)
43
  const [connectionUrl, setConnectionUrl] = useState(
39
  const [connectionUrl, setConnectionUrl] = useState(
Línea 204... Línea 200...
204
                )}
200
                )}
205
              </div>
201
              </div>
206
            </div>
202
            </div>
207
            <div className="card-experiences">
203
            <div className="card-experiences">
208
              <ul>
204
              <ul>
209
                {userExperiences.map(
205
                {experiences.map(
210
                  ({ company, title, industry, size }, index) => (
206
                  ({ company, title, industry, size }, index) => (
211
                    <li key={index}>
207
                    <li key={index}>
212
                      <span>{`${company} - ${title}`}</span>
208
                      <span>{`${company} - ${title}`}</span>
213
                      <p>{`${industry} / ${size}`}</p>
209
                      <p>{`${industry} / ${size}`}</p>
214
                    </li>
210
                    </li>
Línea 227... Línea 223...
227
        setOverview={(newOverview) => setSettedOverview(newOverview)}
223
        setOverview={(newOverview) => setSettedOverview(newOverview)}
228
      />
224
      />
229
      <CoverModal
225
      <CoverModal
230
        isOpen={modalToShow === 'cover'}
226
        isOpen={modalToShow === 'cover'}
231
        type={coverTypes.USER}
227
        type={coverTypes.USER}
232
        size={imageSizeCover}
228
        size={sizes.cover}
233
        id={profileId}
229
        id={profileId}
234
        onClose={() => closeModal()}
230
        onClose={() => closeModal()}
235
        onComplete={(newImage) => setCoverImg(newImage)}
231
        onComplete={(newImage) => setCoverImg(newImage)}
236
      />
232
      />
237
      <ImageModal
233
      <ImageModal
238
        handleModalOpen={() => closeModal()}
234
        handleModalOpen={() => closeModal()}
239
        isModalOpen={modalToShow === 'image'}
235
        isModalOpen={modalToShow === 'image'}
240
        profileId={profileId}
236
        profileId={profileId}
241
        imageProfileCover={imageProfileCover}
237
        imageProfileCover={sizes.image}
242
        profileType={profileTypes.USER}
238
        profileType={profileTypes.USER}
243
        setProfileImg={(newImage) => setProfileImg(newImage)}
239
        setProfileImg={(newImage) => setProfileImg(newImage)}
244
      />
240
      />
245
      <ProfileCard.Modal
241
      <ProfileCard.Modal
246
        show={modalToShow === 'info'}
242
        show={modalToShow === 'info'}