Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4119 Rev 4120
Línea 1000... Línea 1000...
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 [year, setYear] = useState(new Intl.DateTimeFormat('en').format(new Date()))
-
 
1005
  const [coferenceType, setConferenceType] = useState(1)
-
 
1006
 
Línea 1004... Línea 1007...
1004
  const [year, setYear] = useState(new Intl.DateTimeFormat('en').format(new Date()))
1007
  const handleChange = (value) => setConferenceType(value)
1005
 
1008
 
1006
  const onSubmit = () => {
1009
  const onSubmit = () => {
Línea 1046... Línea 1049...
1046
        <div className="d-flex flex-wrap pb-3" style={{ gap: '1rem' }}>
1049
        <div className="d-flex flex-wrap pb-3" style={{ gap: '1rem' }}>
1047
          <div className="cp-field">
1050
          <div className="cp-field">
1048
            <label htmlFor="timezone">Tipo de conferencia</label>
1051
            <label htmlFor="timezone">Tipo de conferencia</label>
1049
            <select
1052
            <select
1050
              name="type"
1053
              name="type"
-
 
1054
              onChange={({ target }) => handleChange(target.value)}
1051
              {...register}
1055
              {...register}
1052
            >
1056
            >
1053
              <option value="1">
1057
              <option value="1">
1054
                Inmediata
1058
                Inmediata
1055
              </option>
1059
              </option>
Línea 1057... Línea 1061...
1057
                Programada
1061
                Programada
1058
              </option>
1062
              </option>
1059
            </select>
1063
            </select>
1060
          </div>
1064
          </div>
1061
          {
1065
          {
1062
            watch('type') === '2' &&
1066
            coferenceType === '2' &&
1063
            <div className="cp-field">
1067
            <div className="cp-field">
1064
              <label htmlFor="timezone">Tipo de conferencia</label>
1068
              <label htmlFor="timezone">Tipo de conferencia</label>
1065
              <Datetime
1069
              <Datetime
1066
                dateFormat="DD-MM-YYYY"
1070
                dateFormat="DD-MM-YYYY"
1067
                onChange={(e) =>
1071
                onChange={(e) =>