Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5875 Rev 5890
Línea 139... Línea 139...
139
        userIdEncrypted={userInfo.userProfileIdEncrypted}
139
        userIdEncrypted={userInfo.userProfileIdEncrypted}
140
      />
140
      />
141
    ),
141
    ),
142
  }
142
  }
Línea 143... Línea 143...
143
 
143
 
144
  useEffect(() => {
144
  /* useEffect(() => {
145
    const adapters = [
145
    const adapters = [
146
      {
146
      {
147
        value: userSkills,
147
        value: userSkills,
148
        setter: setSkills,
148
        setter: setSkills,
Línea 166... Línea 166...
166
        value: key,
166
        value: key,
167
        name: value,
167
        name: value,
168
      }))
168
      }))
169
      adapter.setter(value)
169
      adapter.setter(value)
170
    })
170
    })
171
  }, [])
171
  }, []) */
Línea 172... Línea -...
172
 
-
 
173
  return (
-
 
174
    <main className="w-100">
-
 
175
      <div className="container">
-
 
176
        <div className="main d-flex flex-column" style={{ gap: '.5rem' }}>
-
 
177
          <ProfileCard
-
 
178
            {...{
-
 
179
              ...userInfo,
-
 
180
              formatted_address: address,
-
 
181
              userIdEncrypted: userInfo.profileId,
-
 
182
            }}
-
 
183
          />
-
 
184
          <ProfileWidget
-
 
185
            title="Experiencia"
-
 
186
            onEdit={() => setIsEdit(!isEdit)}
-
 
187
            onAdd={handleAdd}
-
 
188
            addUrl={`/profile/my-profiles/experience/${userInfo.userProfileIdEncrypted}/operation/add`}
-
 
189
          >
-
 
190
            {experiences.map((experience, index) => {
-
 
191
              return (
-
 
192
                <ExperienceCard
-
 
193
                  key={index}
-
 
194
                  experience={experience}
-
 
195
                  months={userInfo.months}
-
 
196
                  isEdit={isEdit}
-
 
197
                  onEdit={handleEdit}
-
 
198
                  setExperiences={(newExperiences) =>
-
 
199
                    setExperiences(newExperiences)
-
 
200
                  }
-
 
201
                />
-
 
202
              )
-
 
203
            })}
-
 
204
          </ProfileWidget>
-
 
205
          <ProfileWidget
-
 
206
            title="Educación"
-
 
207
            onEdit={() => setIsEdit(!isEdit)}
-
 
208
            onAdd={handleAdd}
-
 
209
            addUrl={`/profile/my-profiles/education/${userInfo.userProfileIdEncrypted}/operation/add`}
-
 
210
          >
-
 
211
            {educations.map((education, index) => {
-
 
212
              return (
-
 
213
                <EducationCard
-
 
214
                  key={index}
-
 
215
                  education={education}
-
 
216
                  isEdit={isEdit}
-
 
217
                  onEdit={handleEdit}
-
 
218
                  setEducations={(newEducations) =>
-
 
219
                    setEducations(newEducations)
-
 
220
                  }
-
 
221
                />
-
 
222
              )
-
 
223
            })}
-
 
224
          </ProfileWidget>
-
 
225
          <ProfileWidget
-
 
226
            title="Ubicación"
-
 
227
            onEdit={() => setModalShow('Ubicación')}
-
 
228
            justEdit
-
 
229
          >
-
 
230
            <div className="card__items">
-
 
231
              <p>{address}</p>
-
 
232
            </div>
-
 
233
          </ProfileWidget>
-
 
234
          <ProfileWidget
-
 
235
            title="Idiomas"
-
 
236
            onEdit={() => setModalShow('Idiomas')}
-
 
237
            justEdit
-
 
238
          >
-
 
239
            {!languages.length ? (
-
 
240
              <EmptySection align="left" message="Sin información" />
-
 
241
            ) : (
-
 
242
              <ItemsList value={languages} />
-
 
243
            )}
-
 
244
          </ProfileWidget>
-
 
245
          <ProfileWidget
-
 
246
            title="Habilidades"
-
 
247
            onEdit={() => setModalShow('Habilidades')}
-
 
248
            justEdit
-
 
249
          >
-
 
250
            {!skills.length ? (
-
 
251
              <EmptySection align="left" message="Sin información" />
-
 
252
            ) : (
-
 
253
              <ItemsList value={skills} />
-
 
254
            )}
-
 
255
          </ProfileWidget>
-
 
256
          <ProfileWidget
-
 
257
            title="Aptitudes"
-
 
258
            onEdit={() => setModalShow('Aptitudes')}
-
 
259
            justEdit
-
 
260
          >
-
 
261
            {!aptitudes.length ? (
-
 
262
              <EmptySection align="left" message="Sin información" />
-
 
263
            ) : (
-
 
264
              <ItemsList value={aptitudes} />
-
 
265
            )}
-
 
266
          </ProfileWidget>
172
 
267
          <ProfileWidget
-
 
268
            title="Pasatiempos e intereses"
-
 
269
            onEdit={() => setModalShow('Hobbies e Intereses')}
-
 
270
            justEdit
-
 
271
          >
-
 
272
            {!hobbiesAndInterests.length ? (
-
 
273
              <EmptySection align="left" message="Sin información" />
-
 
274
            ) : (
-
 
275
              <ItemsList value={hobbiesAndInterests} />
-
 
276
            )}
-
 
277
          </ProfileWidget>
-
 
278
          {renderModal[modalShow]}
-
 
279
        </div>
-
 
280
      </div>
-
 
281
    </main>
-
 
282
  )
173
  return <h1>Hello</h1>
Línea 283... Línea 174...
283
}
174
}