|
@@ -11,6 +11,12 @@ import { Password } from '../Password/Steps/password'
|
11
|
11
|
import { Candidato } from '../Password/Steps/candidato'
|
12
|
12
|
import { Resume } from '../Password/Steps/resume'
|
13
|
13
|
|
|
14
|
+function addYearToDate(date, years) {
|
|
15
|
+ let newDate = new Date(date);
|
|
16
|
+ newDate.setFullYear(newDate.getFullYear() + years);
|
|
17
|
+ return newDate;
|
|
18
|
+}
|
|
19
|
+
|
14
|
20
|
export function HelpModal(props) {
|
15
|
21
|
|
16
|
22
|
let { visible, handleClose } = props
|
|
@@ -22,7 +28,7 @@ export function HelpModal(props) {
|
22
|
28
|
const [password, setPassword] = React.useState({
|
23
|
29
|
puesto: [],
|
24
|
30
|
pwd: "",
|
25
|
|
- deadpwd: now.current,
|
|
31
|
+ deadpwd: addYearToDate(now.current, 1),
|
26
|
32
|
dateToActived: now.current,
|
27
|
33
|
sendmail: true,
|
28
|
34
|
nombrepuesto: null,
|