Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3028 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3028 Rev 3029
Línea 17... Línea 17...
17
  const showModal = (type, experience = null) => {
17
  const showModal = (type, experience = null) => {
18
    setCurrentExperience(experience)
18
    setCurrentExperience(experience)
19
    setModalState(modalState === type ? null : type)
19
    setModalState(modalState === type ? null : type)
20
  }
20
  }
Línea 21... Línea 21...
21
 
21
 
22
  const onAdd = async (experience) => {
22
  const onAdd = async (uuid, experience) => {
23
    try {
23
    try {
24
      const newExperiences = await addExperience(experience)
24
      const newExperiences = await addExperience(uuid, experience)
25
      setExperiences(newExperiences)
25
      setExperiences(newExperiences)
26
      showModal(null)
26
      showModal(null)
27
    } catch (error) {
27
    } catch (error) {
28
      dispatch(
28
      dispatch(