Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6775 Rev 6779
Línea 4... Línea 4...
4
import { useForm } from 'react-hook-form'
4
import { useForm } from 'react-hook-form'
5
import { CKEditor } from 'ckeditor4-react'
5
import { CKEditor } from 'ckeditor4-react'
6
import { useDispatch, useSelector } from 'react-redux'
6
import { useDispatch, useSelector } from 'react-redux'
7
import { addNotification } from '../../redux/notification/notification.actions'
7
import { addNotification } from '../../redux/notification/notification.actions'
8
import { getMonths, getYears } from '../../utils/dates'
8
import { getMonths, getYears } from '../../utils/dates'
-
 
9
import useFetchHelper from '../../hooks/useFetchHelper'
Línea 9... Línea 10...
9
 
10
 
10
import SwitchInput from '../UI/SwitchInput'
11
import SwitchInput from '../UI/SwitchInput'
11
import FormErrorFeedback from '../UI/FormErrorFeedback'
12
import FormErrorFeedback from '../UI/FormErrorFeedback'
Línea 29... Línea 30...
29
    'latitude',
30
    'latitude',
30
    'longitude',
31
    'longitude',
31
  ])
32
  ])
32
  const labels = useSelector(({ intl }) => intl.labels)
33
  const labels = useSelector(({ intl }) => intl.labels)
33
  const dispatch = useDispatch()
34
  const dispatch = useDispatch()
-
 
35
  const { data: companySizes } = useFetchHelper('company-sizes')
Línea 34... Línea 36...
34
 
36
 
35
  const {
37
  const {
36
    register,
38
    register,
37
    errors,
39
    errors,
Línea 206... Línea 208...
206
              defaultValue=""
208
              defaultValue=""
207
            >
209
            >
208
              <option value="" hidden>
210
              <option value="" hidden>
209
                Tamaño de la Empresa
211
                Tamaño de la Empresa
210
              </option>
212
              </option>
-
 
213
              {companySizes &&
-
 
214
                Object.entries(companySizes).map(([key, value]) => (
-
 
215
                  <option value={key} key={key}>
-
 
216
                    {value}
-
 
217
                  </option>
-
 
218
                ))}
211
            </select>
219
            </select>
212
            {errors.company_size_id && (
220
            {errors.company_size_id && (
213
              <FormErrorFeedback>
221
              <FormErrorFeedback>
214
                {errors.company_size_id.message}
222
                {errors.company_size_id.message}
215
              </FormErrorFeedback>
223
              </FormErrorFeedback>