Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 655 Rev 748
Línea 3... Línea 3...
3
import { useDispatch, useSelector } from 'react-redux'
3
import { useDispatch, useSelector } from 'react-redux'
4
import { CKEditor } from 'ckeditor4-react'
4
import { CKEditor } from 'ckeditor4-react'
5
import { CKEDITOR_OPTIONS, axios } from '../../utils'
5
import { CKEDITOR_OPTIONS, axios } from '../../utils'
6
import { useForm } from 'react-hook-form'
6
import { useForm } from 'react-hook-form'
7
import { addNotification } from '../../redux/notification/notification.actions'
7
import { addNotification } from '../../redux/notification/notification.actions'
-
 
8
import styled from 'styled-components'
Línea 8... Línea 9...
8
 
9
 
9
import Spinner from '../UI/Spinner'
10
import Spinner from '../UI/Spinner'
10
import TagsInput from '../UI/TagsInput'
11
import TagsInput from '../UI/TagsInput'
11
import FormErrorFeedback from '../UI/FormErrorFeedback'
-
 
Línea 12... Línea 12...
12
import { styled } from 'styled-components'
12
import FormErrorFeedback from '../UI/FormErrorFeedback'
13
 
13
 
14
const TagsContainer = styled.div`
14
const TagsContainer = styled.div`
15
  padding: 0.5rem;
15
  padding: 0.5rem;
Línea 82... Línea 82...
82
      })
82
      })
83
  }
83
  }
Línea 84... Línea 84...
84
 
84
 
85
  const onTagsChange = (tags) => {
85
  const onTagsChange = (tags) => {
-
 
86
    const categories = tags.map((tag) => tag.value)
86
    const categories = tags.map((tag) => tag.value)
87
    console.log(tags)
87
    setValue('category_id', categories)
88
    setValue('category_id', categories)
Línea 88... Línea 89...
88
  }
89
  }
89
 
90