Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5783 Rev 5785
Línea 131... Línea 131...
131
      return data
131
      return data
132
    })
132
    })
133
  }
133
  }
Línea 134... Línea 134...
134
 
134
 
135
  const deleteReaction = () => {
135
  const deleteReaction = () => {
136
    axios.post(feed.fefeed_delete_reaction_url).then((res) => {
136
    axios.post(feed.feed_delete_reaction_url).then((res) => {
Línea 137... Línea 137...
137
      const { success, data } = res.data
137
      const { success, data } = res.data
138
 
138
 
139
      if (!success) {
139
      if (!success) {
140
        dispatch(addNotification({ style: 'danger', msg: data }))
140
        dispatch(addNotification({ style: 'danger', msg: data }))
Línea -... Línea 141...
-
 
141
        return
141
        return
142
      }
142
      }
143
 
143
 
144
      setOwnerReaction(data)
Línea 144... Línea 145...
144
      return data
145
      return data
Línea 214... Línea 215...
214
              ownerReactions.find(
215
              ownerReactions.find(
215
                (reaction) => reaction.reaction === option.type
216
                (reaction) => reaction.reaction === option.type
216
              )
217
              )
217
            )
218
            )
218
            .map((reaction) => reaction.icon)}
219
            .map((reaction) => reaction.icon)}
219
          <span>{totalReactions}</span>
220
          <span>{totalReactions} reacciones</span>
220
        </div>
221
        </div>
221
        <ul className="reactions-list">
222
        <ul className="reactions-list">
222
          <li>
223
          <li>
223
            <ReactionButton
224
            <ReactionButton
224
              onSelect={saveReaction}
225
              onSelect={saveReaction}