Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3228 Rev 3230
Línea 8... Línea 8...
8
import Ckeditor from '@components/UI/Ckeditor'
8
import Ckeditor from '@components/UI/Ckeditor'
9
import TagsInput from '@components/UI/TagsInput'
9
import TagsInput from '@components/UI/TagsInput'
10
import LoadingWrapper from '@components/common/loading-wrapper'
10
import LoadingWrapper from '@components/common/loading-wrapper'
11
import FormErrorFeedback from '@components/UI/form/FormErrorFeedback'
11
import FormErrorFeedback from '@components/UI/form/FormErrorFeedback'
Línea -... Línea 12...
-
 
12
 
-
 
13
import 'react-datetime/css/react-datetime.css'
12
 
14
 
13
export default function GoalForm({
15
export default function GoalForm({
14
  onSubmit = () => {},
16
  onSubmit = () => {},
15
  habits = [],
17
  habits = [],
16
  defaultValues = {},
18
  defaultValues = {},
Línea 19... Línea 21...
19
  const {
21
  const {
20
    control,
22
    control,
21
    handleSubmit,
23
    handleSubmit,
22
    formState: { errors, isSubmitting }
24
    formState: { errors, isSubmitting }
23
  } = useForm({
25
  } = useForm({
24
    defaultValues: {
26
    defaultValues,
25
      start_date: new Date()
-
 
26
    },
-
 
27
    values,
27
    values,
28
    mode: 'all'
28
    mode: 'all'
29
  })
29
  })
Línea 30... Línea 30...
30
 
30