Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1896 Rev 1971
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)
-
 
61
 
58
  const addComment = (comment) => {
62
    axios
59
    axios
63
      .post(link_add_comment, formData)
60
      .post(link_add_comment, { comment })
64
      .then((response) => {
61
      .then((response) => {
Línea 65... Línea 62...
65
        const { success, data } = response.data
62
        const { success, data } = response.data
66
 
63