Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6883 Rev 6892
Línea 20... Línea 20...
20
  linkInmail,
20
  linkInmail,
21
  linkAccept,
21
  linkAccept,
22
  linkCancel,
22
  linkCancel,
23
  linkLeave,
23
  linkLeave,
24
  linkRequest,
24
  linkRequest,
-
 
25
  refetch,
25
}) => {
26
}) => {
26
  const [profileImg, setProfileImg] = useState('')
27
  const [profileImg, setProfileImg] = useState('')
27
  const [coverImg, setCoverImg] = useState('')
28
  const [coverImg, setCoverImg] = useState('')
28
  const [isEdit, setIsEdit] = useState(false)
29
  const [isEdit, setIsEdit] = useState(false)
29
  const [modalToShow, setModalToShow] = useState(null)
30
  const [modalToShow, setModalToShow] = useState(null)
Línea 40... Línea 41...
40
      .post(url)
41
      .post(url)
41
      .then(({ data: response }) => {
42
      .then(({ data: response }) => {
42
        const { data, success } = response
43
        const { data, success } = response
Línea 43... Línea 44...
43
 
44
 
44
        if (!success) {
45
        if (!success) {
45
          dispatch(addNotification({ style: 'error', msg: data }))
46
          dispatch(addNotification({ style: 'danger', msg: data }))
46
          return
47
          return
Línea -... Línea 48...
-
 
48
        }
47
        }
49
 
48
 
50
        refetch()
49
        addNotification({ style: 'success', msg: data })
51
        addNotification({ style: 'success', msg: data })
50
      })
52
      })