Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4126 Rev 4127
Línea 999... Línea 999...
999
const ConferenceModal = ({
999
const ConferenceModal = ({
1000
  show = false
1000
  show = false
1001
}) => {
1001
}) => {
Línea 1002... Línea 1002...
1002
 
1002
 
-
 
1003
  const { handleSubmit, register, watch, errors, reset } = useForm()
1003
  const { handleSubmit, register, watch, errors, reset } = useForm()
1004
  const [date, setDate] = useState(new Intl.DateTimeFormat('en').format(new Date()))
1004
  const [year, setYear] = useState(new Intl.DateTimeFormat('en').format(new Date()))
1005
  const [time, setTime] = useState(new Intl.DateTimeFormat('en').format(new Date()))
Línea 1005... Línea 1006...
1005
  const [coferenceType, setConferenceType] = useState(1)
1006
  const [coferenceType, setConferenceType] = useState(1)
Línea 1006... Línea 1007...
1006
 
1007
 
Línea 1066... Línea 1067...
1066
            coferenceType === '2' &&
1067
            coferenceType === '2' &&
1067
            <div className="cp-field">
1068
            <div className="cp-field">
1068
              <label htmlFor="timezone">Tipo de conferencia</label>
1069
              <label htmlFor="timezone">Tipo de conferencia</label>
1069
              <Datetime
1070
              <Datetime
1070
                dateFormat="DD-MM-YYYY"
1071
                dateFormat="DD-MM-YYYY"
1071
                onChange={(e) =>
1072
                onChange={(e) => {
1072
                  setYear(new Intl.DateTimeFormat('en', { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric' }).format(e.toDate()))
1073
                  setDate(new Intl.DateTimeFormat('en', { year: 'numeric', month: 'numeric', day: 'numeric' }).format(e.toDate()))
-
 
1074
                  setTime(new Intl.DateTimeFormat('en', { hour: '2-digit', minute: '2-digit', second: '2-digit' }).format(e.toDate()))
1073
                }
1075
                }}
1074
                inputProps={{ className: 'form-control' }}
1076
                inputProps={{ className: 'form-control' }}
1075
                initialValue={Date.parse(year)}
1077
                initialValue={Date.parse(date)}
1076
                closeOnSelect
1078
                closeOnSelect
1077
              />
1079
              />
1078
            </div>
1080
            </div>
1079
          }
1081
          }
1080
        </div>
1082
        </div>