Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1902 Rev 1915
Línea 10... Línea 10...
10
import Modal from 'components/UI/modal/Modal'
10
import Modal from 'components/UI/modal/Modal'
11
import ConfirmModal from 'components/modals/ConfirmModal'
11
import ConfirmModal from 'components/modals/ConfirmModal'
12
import ImageModal from 'components/modals/ImageModal'
12
import ImageModal from 'components/modals/ImageModal'
13
import OverviewModal from 'components/overview/OverviewModal'
13
import OverviewModal from 'components/overview/OverviewModal'
14
import Cover from '../UI/cover/Cover'
14
import Cover from '../UI/cover/Cover'
-
 
15
import WidgetWrapper from '../widgets/WidgetLayout'
Línea 15... Línea 16...
15
 
16
 
16
const ProfileCard = ({
17
const ProfileCard = ({
17
  full_name: fullName = '',
18
  full_name: fullName = '',
18
  overview = '',
19
  overview = '',
Línea 22... Línea 23...
22
  experiences = [],
23
  experiences = [],
23
  link_inmail: linkInmail = '',
24
  link_inmail: linkInmail = '',
24
  link_cancel: CancelConnectionUrl = '',
25
  link_cancel: CancelConnectionUrl = '',
25
  link_request: RequestConnectionUrl = '',
26
  link_request: RequestConnectionUrl = '',
26
  image = '',
27
  image = '',
27
  cover = '',
28
  cover,
28
  user_profile_uuid: profileId,
29
  user_profile_uuid: profileId,
29
  request_connection,
30
  request_connection,
30
  follower,
31
  follower,
31
  following,
32
  following,
32
  facebook,
33
  facebook,
Línea 108... Línea 109...
108
    setIsEdit(pathname.includes('edit'))
109
    setIsEdit(pathname.includes('edit'))
109
  }, [pathname])
110
  }, [pathname])
Línea 110... Línea 111...
110
 
111
 
111
  return (
112
  return (
112
    <>
113
    <>
113
      <section className='profile__user-card'>
114
      <WidgetWrapper>
114
        <Cover
115
        <Cover
115
          cover={cover}
116
          cover={cover}
116
          sizes={sizes?.cover}
117
          sizes={sizes?.cover}
117
          edit={isEdit}
118
          edit={isEdit}
Línea 124... Línea 125...
124
              className={`img ${isEdit && 'cursor-pointer'}`}
125
              className={`img ${isEdit && 'cursor-pointer'}`}
125
              src={profileImg}
126
              src={profileImg}
126
              onClick={() => isEdit && setModalToShow('image')}
127
              onClick={() => isEdit && setModalToShow('image')}
127
            />
128
            />
128
            {isEdit && (
129
            {isEdit && (
129
              <button
-
 
130
                className='button-icon'
-
 
131
                onClick={() => setModalToShow('overview')}
130
              <button className='' onClick={() => setModalToShow('overview')}>
132
              >
-
 
133
                <EditIcon />
131
                <EditIcon />
134
              </button>
132
              </button>
135
            )}
133
            )}
136
          </div>
134
          </div>
137
          <div className='card-content'>
135
          <div className='card-content'>
Línea 205... Línea 203...
205
                )}
203
                )}
206
              </ul>
204
              </ul>
207
            </div>
205
            </div>
208
          </div>
206
          </div>
209
        </section>
207
        </section>
210
      </section>
208
      </WidgetWrapper>
Línea 211... Línea 209...
211
 
209
 
212
      {isEdit && (
210
      {isEdit && (
213
        <>
211
        <>
214
          <OverviewModal
212
          <OverviewModal