Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 7118 Rev 7119
Línea 107... Línea 107...
107
    }
107
    }
108
    return <p>{fullText}</p>
108
    return <p>{fullText}</p>
109
  }
109
  }
Línea 110... Línea 110...
110
 
110
 
-
 
111
  const saveReaction = (type) => {
-
 
112
    const formData = new FormData()
-
 
113
    formData.append('reaction', type)
111
  const saveReaction = (type) => {
114
 
112
    axios.post(post.save_reaction_url).then((res) => {
115
    axios.post(post.save_reaction_url, formData).then((res) => {
Línea 113... Línea 116...
113
      const { success, data } = res.data
116
      const { success, data } = res.data
114
 
117
 
-
 
118
      if (!success) {
115
      if (!success) {
119
        dispatch(addNotification({ style: 'danger', msg: data }))
Línea 116... Línea 120...
116
        dispatch(addNotification({ style: 'danger', msg: data }))
120
        return
117
      }
121
      }
118
 
122