Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 9893 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 9893 Rev 11166
Línea 2... Línea 2...
2
import { useForm } from 'react-hook-form'
2
import { useForm } from 'react-hook-form'
3
import DescriptionInput from '../../../shared/DescriptionInput'
3
import DescriptionInput from '../../../shared/DescriptionInput'
4
import SubmitModal from './SubmitModal'
4
import SubmitModal from './SubmitModal'
Línea 5... Línea 5...
5
 
5
 
6
const OverviewModal = ({
6
const OverviewModal = ({
7
    closeModal,
7
	closeModal,
8
    dataLink,
8
	dataLink,
9
    modalData
9
	modalData
Línea 10... Línea 10...
10
}) => {
10
}) => {
Línea 11... Línea 11...
11
 
11
 
Línea 12... Línea 12...
12
    const { setValue, register, watch } = useForm()
12
	const { setValue, register, watch } = useForm()
13
 
13
 
14
    useEffect(() => register("description"), [])
14
	useEffect(() => register('description'), [])
15
 
15
 
16
    return (
16
	return (
17
        <SubmitModal
17
		<SubmitModal
18
            submitData={{ description: watch("description") }}
18
			submitData={{ description: watch('description') }}
19
            closeModal={closeModal}
19
			closeModal={closeModal}
20
            postLink={dataLink}
20
			postLink={dataLink}
21
            title='Visión general'
21
			title='Visión general'
22
        >
22
		>
23
            <DescriptionInput
23
			<DescriptionInput
24
                setValue={setValue}
24
				onChange={setValue}
25
                name="description"
25
				name="description"
26
                defaultValue={modalData}
26
				defaultValue={modalData}
Línea 27... Línea 27...
27
            />
27
			/>
28
        </SubmitModal>
28
		</SubmitModal>