| Línea 1... |
Línea 1... |
| 1 |
import React, { useState } from "react";
|
1 |
import React, { useState } from "react";
|
| 2 |
import Modal from "react-bootstrap/Modal";
|
- |
|
| 3 |
import { useDispatch } from "react-redux";
|
- |
|
| 4 |
import Datetime from "react-datetime";
|
- |
|
| 5 |
import { axios } from "../../../../utils";
|
2 |
import { axios } from "../../../../utils";
|
| 6 |
import { addNotification } from "../../../../redux/notification/notification.actions";
|
- |
|
| 7 |
import { useForm } from "react-hook-form";
|
3 |
import { useForm } from "react-hook-form";
|
| - |
|
4 |
import { useDispatch } from "react-redux";
|
| - |
|
5 |
import { addNotification } from "../../../../redux/notification/notification.actions";
|
| - |
|
6 |
import Modal from "react-bootstrap/Modal";
|
| - |
|
7 |
import Datetime from "react-datetime";
|
| - |
|
8 |
|
| - |
|
9 |
import FormErrorFeedback from "../../../../shared/form-error-feedback/FormErrorFeedback";
|
| Línea 8... |
Línea 10... |
| 8 |
|
10 |
|
| 9 |
const ConferenceModal = ({
|
11 |
const ConferenceModal = ({
|
| 10 |
isShow = false,
|
12 |
isShow = false,
|
| 11 |
timezones = {},
|
13 |
timezones = {},
|
| 12 |
zoomUrl = "",
|
14 |
zoomUrl = "",
|
| 13 |
onClose = () => null,
|
15 |
onClose = () => null,
|
| 14 |
onCreate = () => null,
|
16 |
onCreate = () => null,
|
| 15 |
}) => {
|
17 |
}) => {
|
| 16 |
const dt = new Date();
|
18 |
const dt = new Date();
|
| 17 |
const { handleSubmit, register, errors, reset } = useForm({ mode: "all" });
|
19 |
const { handleSubmit, register, errors, reset } = useForm();
|
| 18 |
const [date, setDate] = useState({
|
20 |
const [date, setDate] = useState({
|
| 19 |
year: dt.toLocaleString("default", { year: "numeric" }),
|
21 |
year: dt.toLocaleString("default", { year: "numeric" }),
|
| 20 |
month: dt.toLocaleString("default", { month: "2-digit" }),
|
22 |
month: dt.toLocaleString("default", { month: "2-digit" }),
|
| 21 |
day: dt.toLocaleString("default", { day: "2-digit" }),
|
23 |
day: dt.toLocaleString("default", { day: "2-digit" }),
|