|
@@ -11,6 +11,12 @@ import { Password } from '../Password/Steps/password'
|
|
|
import { Candidato } from '../Password/Steps/candidato'
|
|
import { Candidato } from '../Password/Steps/candidato'
|
|
|
import { Resume } from '../Password/Steps/resume'
|
|
import { Resume } from '../Password/Steps/resume'
|
|
|
|
|
|
|
|
|
|
+function addYearToDate(date, years) {
|
|
|
|
|
+ let newDate = new Date(date);
|
|
|
|
|
+ newDate.setFullYear(newDate.getFullYear() + years);
|
|
|
|
|
+ return newDate;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export function HelpModal(props) {
|
|
export function HelpModal(props) {
|
|
|
|
|
|
|
|
let { visible, handleClose } = props
|
|
let { visible, handleClose } = props
|
|
@@ -22,7 +28,7 @@ export function HelpModal(props) {
|
|
|
const [password, setPassword] = React.useState({
|
|
const [password, setPassword] = React.useState({
|
|
|
puesto: [],
|
|
puesto: [],
|
|
|
pwd: "",
|
|
pwd: "",
|
|
|
- deadpwd: now.current,
|
|
|
|
|
|
|
+ deadpwd: addYearToDate(now.current, 1),
|
|
|
dateToActived: now.current,
|
|
dateToActived: now.current,
|
|
|
sendmail: true,
|
|
sendmail: true,
|
|
|
nombrepuesto: null,
|
|
nombrepuesto: null,
|