Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1978 Rev 1979
Línea 21... Línea 21...
21
  const dispatch = useDispatch()
21
  const dispatch = useDispatch()
Línea 22... Línea 22...
22
 
22
 
Línea 23... Línea 23...
23
  const toggleModal = () => setShoModal(!showModal)
23
  const toggleModal = () => setShoModal(!showModal)
-
 
24
 
-
 
25
  const handleEditHobbies = ({ hobbies }) => {
-
 
26
    const formData = new FormData()
-
 
27
 
-
 
28
    hobbies.map((hobbie) =>
-
 
29
      formData.append('hobbies_and_interests[]', hobbie.value)
24
 
30
    )
25
  const handleEditHobbies = ({ hobbies }) => {
31
 
26
    axios
-
 
27
      .post(`/profile/my-profiles/hobby-and-interest/${uuid}`, {
-
 
28
        'hobbies_and_interests[]': hobbies.map((hobbie) => hobbie.value)
32
    axios
29
      })
33
      .post(`/profile/my-profiles/hobby-and-interest/${uuid}`, formData)
Línea 30... Línea 34...
30
      .then(({ data: response }) => {
34
      .then(({ data: response }) => {
31
        const { data, success } = response
35
        const { data, success } = response