Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4118 Rev 4119
Línea 9... Línea 9...
9
import MessageTemplate from "./messageTemplate/MessageTemplate";
9
import MessageTemplate from "./messageTemplate/MessageTemplate";
10
import { Button, Modal } from "react-bootstrap";
10
import { Button, Modal } from "react-bootstrap";
11
import Spinner from "../../../shared/loading-spinner/Spinner";
11
import Spinner from "../../../shared/loading-spinner/Spinner";
12
import { useForm } from "react-hook-form";
12
import { useForm } from "react-hook-form";
13
import FormErrorFeedback from "../../../shared/form-error-feedback/FormErrorFeedback";
13
import FormErrorFeedback from "../../../shared/form-error-feedback/FormErrorFeedback";
-
 
14
import 'react-datetime/css/react-datetime.css'
14
import Datetime from "react-datetime";
15
import Datetime from "react-datetime";
Línea 15... Línea 16...
15
 
16
 
16
const StyledChatHead = styled.div`
17
const StyledChatHead = styled.div`
17
  .notify {
18
  .notify {
Línea 70... Línea 71...
70
      border-bottom: 1px solid #e2e2e2;
71
      border-bottom: 1px solid #e2e2e2;
71
    }
72
    }
72
  }
73
  }
73
`;
74
`;
Línea 74... Línea 75...
74
 
75
 
Línea 75... Línea 76...
75
const PersonalChat = ({ entity, onClose, onMinimize, onRead, not_seen_messages, minimized }) => {
76
const PersonalChat = ({ entity, onClose, onMinimize, onRead, not_seen_messages, minimized, timezones }) => {
76
 
77
 
77
  // entity destructuring
78
  // entity destructuring
78
  const {
79
  const {
Línea 994... Línea 995...
994
    </Modal>
995
    </Modal>
995
  )
996
  )
996
}
997
}
Línea 997... Línea 998...
997
 
998
 
998
const ConferenceModal = ({
999
const ConferenceModal = ({
999
  show = false,
-
 
1000
  timezones = {}
1000
  show = false
Línea 1001... Línea 1001...
1001
}) => {
1001
}) => {
1002
 
1002
 
Línea 1056... Línea 1056...
1056
              <option value="2">
1056
              <option value="2">
1057
                Programada
1057
                Programada
1058
              </option>
1058
              </option>
1059
            </select>
1059
            </select>
1060
          </div>
1060
          </div>
-
 
1061
          {
-
 
1062
            watch('type') === '2' &&
1061
          <div className="cp-field">
1063
            <div className="cp-field">
1062
            <label htmlFor="timezone">Tipo de conferencia</label>
1064
              <label htmlFor="timezone">Tipo de conferencia</label>
1063
            <Datetime
1065
              <Datetime
1064
              dateFormat="DD-MM-YYYY"
1066
                dateFormat="DD-MM-YYYY"
1065
              onChange={(e) =>
1067
                onChange={(e) =>
1066
                setYear(new Intl.DateTimeFormat('en', { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric' }).format(e.toDate()))
1068
                  setYear(new Intl.DateTimeFormat('en', { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric' }).format(e.toDate()))
1067
              }
1069
                }
1068
              inputProps={{ className: 'form-control' }}
1070
                inputProps={{ className: 'form-control' }}
1069
              initialValue={Date.parse(year)}
1071
                initialValue={Date.parse(year)}
1070
              closeOnSelect
1072
                closeOnSelect
1071
              open={watch('type') === '1' ? false : true}
1073
                open={watch('type') === '1' ? false : true}
1072
            />
1074
              />
1073
          </div>
1075
            </div>
-
 
1076
          }
1074
        </div>
1077
        </div>
1075
        <button className="btn btn-primary">
1078
        <button className="btn btn-primary">
1076
          Crear
1079
          Crear
1077
        </button>
1080
        </button>
1078
      </form>
1081
      </form>