Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1971 Rev 1979
Línea 54... Línea 54...
54
  const [showComments, setShowComments] = useState(false)
54
  const [showComments, setShowComments] = useState(false)
55
  const labels = useSelector(({ intl }) => intl.labels)
55
  const labels = useSelector(({ intl }) => intl.labels)
56
  const dispatch = useDispatch()
56
  const dispatch = useDispatch()
Línea 57... Línea 57...
57
 
57
 
-
 
58
  const addComment = (comment) => {
-
 
59
    const formData = new FormData()
-
 
60
    formData.append('comment', comment)
58
  const addComment = (comment) => {
61
 
59
    axios
62
    axios
60
      .post(link_add_comment, { comment })
63
      .post(link_add_comment, formData)
61
      .then((response) => {
64
      .then((response) => {
Línea 62... Línea 65...
62
        const { success, data } = response.data
65
        const { success, data } = response.data
63
 
66