Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3270 Rev 3329
Línea 13... Línea 13...
13
  rules,
13
  rules,
14
  name = '',
14
  name = '',
15
  label = '',
15
  label = '',
16
  displayTime = false,
16
  displayTime = false,
17
  dateFormat = 'DD-MM-YYYY',
17
  dateFormat = 'DD-MM-YYYY',
18
  parseFormat = 'YYYY-MM-DD'
18
  parseFormat = 'YYYY-MM-DD',
-
 
19
  defaultValue
19
}) {
20
}) {
20
  return (
21
  return (
21
    <Controller
22
    <Controller
22
      name={name}
23
      name={name}
23
      control={control}
24
      control={control}
Línea 32... Línea 33...
32
            dateFormat={dateFormat}
33
            dateFormat={dateFormat}
33
            onChange={(e) => onChange(e.format(parseFormat))}
34
            onChange={(e) => onChange(e.format(parseFormat))}
34
            timeFormat={displayTime}
35
            timeFormat={displayTime}
35
            inputProps={{ className: 'form-control', ref, name }}
36
            inputProps={{ className: 'form-control', ref, name }}
36
            value={value}
37
            value={value}
-
 
38
            initialValue={defaultValue}
37
            closeOnSelect
39
            closeOnSelect
38
          />
40
          />
39
          {error && <FormErrorFeedback>{error.message}</FormErrorFeedback>}
41
          {error && <FormErrorFeedback>{error.message}</FormErrorFeedback>}
40
        </>
42
        </>
41
      )}
43
      )}