Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3216 Rev 3217
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import { useOutletContext } from 'react-router-dom'
-
 
3
import { Controller, useForm } from 'react-hook-form'
2
import { Controller, useForm } from 'react-hook-form'
4
import { Button, InputLabel } from '@mui/material'
3
import { Button, InputLabel } from '@mui/material'
5
import Datetime from 'react-datetime'
4
import Datetime from 'react-datetime'
Línea 6... Línea 5...
6
 
5
 
7
import Form from '@components/common/form'
6
import Form from '@components/common/form'
8
import Input from '@components/UI/inputs/Input'
7
import Input from '@components/UI/inputs/Input'
9
import Ckeditor from '@components/UI/Ckeditor'
8
import Ckeditor from '@components/UI/Ckeditor'
10
import TagsInput from '@components/UI/TagsInput'
9
import TagsInput from '@components/UI/TagsInput'
11
import LoadingWrapper from '@components/common/loading-wrapper'
10
import LoadingWrapper from '@components/common/loading-wrapper'
12
import FormErrorFeedback from '@components/UI/form/FormErrorFeedback'
-
 
Línea 13... Línea 11...
13
import { useFetch } from '@hooks'
11
import FormErrorFeedback from '@components/UI/form/FormErrorFeedback'
14
 
12
 
-
 
13
export default function GoalForm({
15
export default function GoalForm({
14
  onSubmit = () => {},
16
  onSubmit = () => {},
15
  habits = [],
17
  defaultValues = {},
16
  defaultValues = {},
18
  values = {}
-
 
19
}) {
-
 
20
  const context = useOutletContext()
-
 
21
  const {
-
 
22
    data: { items: habits }
-
 
23
  } = useFetch(context.link_skills, { items: [] })
17
  values = {}
24
 
18
}) {
25
  const {
19
  const {
26
    control,
20
    control,
27
    handleSubmit,
21
    handleSubmit,