Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5016 Rev 5017
Línea 1047... Línea 1047...
1047
  const dispatch = useDispatch()
1047
  const dispatch = useDispatch()
Línea 1048... Línea 1048...
1048
 
1048
 
Línea 1049... Línea 1049...
1049
  const handleChange = (value) => setConferenceType(value)
1049
  const handleChange = (value) => setConferenceType(value)
1050
 
-
 
1051
  const handleDateTime = (value) => {
-
 
1052
    const date = value.toDate()
1050
 
1053
    console.log(typeof value)
1051
  const handleDateTime = (value) => {
1054
    setDate({
1052
    setDate({
1055
      ...date,
1053
      ...date,
1056
      year: new Intl.DateTimeFormat('es', { year: 'numeric' }).format(value),
1054
      year: new Intl.DateTimeFormat('es', { year: 'numeric' }).format(value),
Línea 1140... Línea 1138...
1140
          coferenceType === 's' &&
1138
          coferenceType === 's' &&
1141
          <div className="form-group">
1139
          <div className="form-group">
1142
            <label htmlFor="timezone">Horario</label>
1140
            <label htmlFor="timezone">Horario</label>
1143
            <Datetime
1141
            <Datetime
1144
              dateFormat="DD-MM-YYYY"
1142
              dateFormat="DD-MM-YYYY"
1145
              onChange={(e) => handleDateTime(e)}
1143
              onChange={(e) => {
-
 
1144
                if (!e.toDate) {
-
 
1145
                  dispatch(addNotification({ msg: `Ha ocurrido un error`, style: 'danger' }))
-
 
1146
                }
-
 
1147
                handleDateTime(e.toDate())
-
 
1148
              }}
1146
              inputProps={{ className: 'form-control' }}
1149
              inputProps={{ className: 'form-control' }}
1147
              initialValue={Date.parse(new Date())}
1150
              initialValue={Date.parse(new Date())}
1148
              closeOnSelect
1151
              closeOnSelect
1149
            />
1152
            />
1150
          </div>
1153
          </div>