Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16257 Rev 16259
Línea 27... Línea 27...
27
      second: "2-digit",
27
      second: "2-digit",
28
    })
28
    })
29
  );
29
  );
30
  const [coferenceType, setConferenceType] = useState(1);
30
  const [coferenceType, setConferenceType] = useState(1);
31
  const [isShow, setIsShow] = useState(show);
31
  const [isShow, setIsShow] = useState(show);
-
 
32
  const dispatch = useDispatch();
Línea 32... Línea 33...
32
 
33
 
33
  useEffect(() => {
34
  useEffect(() => {
34
    setIsShow(show);
35
    setIsShow(show);
Línea 35... Línea -...
35
  }, [show]);
-
 
36
 
-
 
37
  const dispatch = useDispatch();
36
  }, [show]);
38
 
-
 
39
  const closeModal = () => {
-
 
40
    setIsShow(false);
-
 
Línea 41... Línea 37...
41
    reset();
37
 
Línea 42... Línea 38...
42
  };
38
  const closeModal = () => setIsShow(false);
43
 
39
 
Línea 140... Línea 136...
140
            >
136
            >
141
              <option value="i">Inmediata</option>
137
              <option value="i">Inmediata</option>
142
              <option value="s">Programada</option>
138
              <option value="s">Programada</option>
143
            </select>
139
            </select>
144
          </div>
140
          </div>
145
          {coferenceType === "s" && (
141
          `
146
            <div className="form-group">
142
          <div className="form-group">
147
              <label htmlFor="timezone">Horario</label>
143
            <label htmlFor="timezone">Zona horaria</label>
148
              <Datetime
144
            <select
149
                dateFormat="DD-MM-YYYY"
145
              className="form-control"
150
                onChange={(e) => {
146
              name="timezone"
-
 
147
              ref={register({ required: "Por favor elige una Zona horaria" })}
151
                  if (e.toDate) {
148
            >
152
                    handleDateTime(e.toDate());
149
              <option value="" hidden>
153
                  }
150
                Zona horaria
154
                }}
151
              </option>
155
                inputProps={{ className: "form-control" }}
152
              {Object.entries(timezones).map(([key, value]) => (
156
                initialValue={Date.parse(new Date())}
153
                <option value={key} key={key}>
157
                closeOnSelect
154
                  {value}
-
 
155
                </option>
158
              />
156
              ))}
-
 
157
            </select>
-
 
158
            {errors.timezone && (
-
 
159
              <FormErrorFeedback>{errors.timezone.message}</FormErrorFeedback>
-
 
160
            )}
159
            </div>
161
          </div>
160
          )}
162
          `
161
 
-
 
162
          <div className="form-group">
163
          <div className="form-group">
163
            <label htmlFor="timezone">Duración</label>
164
            <label htmlFor="timezone">Duración</label>
164
            <select className="form-control" name="duration" ref={register}>
165
            <select className="form-control" name="duration" ref={register}>
165
              <option value={5}>5-min</option>
166
              <option value={5}>5-min</option>
166
              <option value={10}>10-min</option>
167
              <option value={10}>10-min</option>