Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6954 Rev 6955
Línea 24... Línea 24...
24
      hour: 'numeric',
24
      hour: 'numeric',
25
      minute: '2-digit',
25
      minute: '2-digit',
26
      second: '2-digit',
26
      second: '2-digit',
27
    })
27
    })
28
  )
28
  )
29
  const { data: timezones } = useFetchHelper('timezones', {})
29
  const { data: timezones } = useFetchHelper('timezones')
30
  const labels = useSelector(({ intl }) => intl.labels)
30
  const labels = useSelector(({ intl }) => intl.labels)
31
  const dispatch = useDispatch()
31
  const dispatch = useDispatch()
Línea 32... Línea 32...
32
 
32
 
33
  const { handleSubmit, register, errors, reset, getValues } = useForm({
33
  const { handleSubmit, register, errors, reset, getValues } = useForm({
Línea 154... Línea 154...
154
              ref={register({ required: 'Por favor elige una Zona horaria' })}
154
              ref={register({ required: 'Por favor elige una Zona horaria' })}
155
            >
155
            >
156
              <option value="" hidden>
156
              <option value="" hidden>
157
                Zona horaria
157
                Zona horaria
158
              </option>
158
              </option>
159
              {Object.entries(timezones).map(([key, value]) => (
159
              {timezones.map(({ name, value }) => (
160
                <option value={key} key={key}>
160
                <option value={value} key={value}>
161
                  {value}
161
                  {name}
162
                </option>
162
                </option>
163
              ))}
163
              ))}
164
            </select>
164
            </select>
165
            {errors.timezone && (
165
            {errors.timezone && (
166
              <FormErrorFeedback>{errors.timezone.message}</FormErrorFeedback>
166
              <FormErrorFeedback>{errors.timezone.message}</FormErrorFeedback>