|
|
@@ -1,17 +1,16 @@
|
|
1
|
1
|
import { Modal } from 'react-bootstrap'
|
|
2
|
2
|
import * as React from 'react';
|
|
3
|
3
|
|
|
4
|
|
-import {
|
|
|
4
|
+import {
|
|
5
|
5
|
Box, Stepper, Step,
|
|
6
|
|
- StepLabel, Button , Typography
|
|
|
6
|
+ StepLabel, Button, Typography
|
|
7
|
7
|
} from '@mui/material'
|
|
8
|
8
|
|
|
9
|
|
-import { StepOne } from '../Password/Steps/one'
|
|
10
|
|
-import { StepTwo } from '../Password/Steps/two'
|
|
11
|
|
-import { StepTree } from '../Password/Steps/tree'
|
|
|
9
|
+import { Puesto } from '../Password/Steps/puesto'
|
|
|
10
|
+import { Password } from '../Password/Steps/password'
|
|
12
|
11
|
import { StepFour } from '../Password/Steps/four'
|
|
13
|
12
|
|
|
14
|
|
-export function HelpModal (props) {
|
|
|
13
|
+export function HelpModal(props) {
|
|
15
|
14
|
|
|
16
|
15
|
let { visible, handleClose } = props
|
|
17
|
16
|
|
|
|
@@ -52,54 +51,54 @@ export function HelpModal (props) {
|
|
52
|
51
|
|
|
53
|
52
|
const steps = [
|
|
54
|
53
|
{
|
|
55
|
|
- label : 'Información del candidato',
|
|
56
|
|
- operation:
|
|
57
|
|
- <StepOne
|
|
58
|
|
- handleNext={handleNext}
|
|
59
|
|
- handleBack={handleBack}
|
|
60
|
|
- password={password}
|
|
61
|
|
- setPassword={setPassword}
|
|
|
54
|
+ label: 'Selecciona un Puesto',
|
|
|
55
|
+ operation:
|
|
|
56
|
+ <Puesto
|
|
|
57
|
+ handleNext={handleNext}
|
|
|
58
|
+ handleBack={handleBack}
|
|
|
59
|
+ password={password}
|
|
|
60
|
+ setPassword={setPassword}
|
|
62
|
61
|
/>
|
|
63
|
62
|
},
|
|
64
|
63
|
{
|
|
65
|
|
- label : 'Seleccionar plaza',
|
|
|
64
|
+ label: 'Contraseña',
|
|
66
|
65
|
operation:
|
|
67
|
|
- <StepTwo
|
|
68
|
|
- handleNext={handleNext}
|
|
69
|
|
- handleBack={handleBack}
|
|
70
|
|
- password={password}
|
|
71
|
|
- setPassword={setPassword}
|
|
|
66
|
+ <Password
|
|
|
67
|
+ handleNext={handleNext}
|
|
|
68
|
+ handleBack={handleBack}
|
|
|
69
|
+ password={password}
|
|
|
70
|
+ setPassword={setPassword}
|
|
72
|
71
|
/>
|
|
73
|
72
|
},
|
|
74
|
73
|
{
|
|
75
|
|
- label : 'Seleccionar pruebas',
|
|
|
74
|
+ label: 'Seleccionar pruebas',
|
|
76
|
75
|
operation:
|
|
77
|
|
- <StepTree
|
|
78
|
|
- handleNext={handleNext}
|
|
79
|
|
- handleBack={handleBack}
|
|
80
|
|
- password={password}
|
|
81
|
|
- setPassword={setPassword}
|
|
|
76
|
+ <Puesto
|
|
|
77
|
+ handleNext={handleNext}
|
|
|
78
|
+ handleBack={handleBack}
|
|
|
79
|
+ password={password}
|
|
|
80
|
+ setPassword={setPassword}
|
|
82
|
81
|
/>
|
|
83
|
82
|
},
|
|
84
|
83
|
{
|
|
85
|
|
- label : 'Confirmar',
|
|
86
|
|
- operation:
|
|
|
84
|
+ label: 'Confirmar',
|
|
|
85
|
+ operation:
|
|
87
|
86
|
<StepFour
|
|
88
|
|
- handleNext={handleNext}
|
|
89
|
|
- handleBack={handleBack}
|
|
90
|
|
- password={password}
|
|
91
|
|
- setPassword={setPassword}
|
|
|
87
|
+ handleNext={handleNext}
|
|
|
88
|
+ handleBack={handleBack}
|
|
|
89
|
+ password={password}
|
|
|
90
|
+ setPassword={setPassword}
|
|
92
|
91
|
/>
|
|
93
|
92
|
},
|
|
94
|
93
|
];
|
|
95
|
94
|
|
|
96
|
95
|
|
|
97
|
96
|
return (
|
|
98
|
|
- <Modal size="lg"
|
|
99
|
|
- aria-labelledby="contained-modal-title-vcenter"
|
|
100
|
|
- centered show={visible}
|
|
|
97
|
+ <Modal size="lg"
|
|
|
98
|
+ aria-labelledby="contained-modal-title-vcenter"
|
|
|
99
|
+ centered show={visible}
|
|
101
|
100
|
onHide={handleClose}
|
|
102
|
|
- >
|
|
|
101
|
+ >
|
|
103
|
102
|
<Modal.Header>
|
|
104
|
103
|
<button type="button" className="close" onClick={handleClose}>×</button>
|
|
105
|
104
|
<h4 className="modal-title">Crear Contraseña</h4>
|
|
|
@@ -107,7 +106,11 @@ export function HelpModal (props) {
|
|
107
|
106
|
<Modal.Body className="modal-body">
|
|
108
|
107
|
|
|
109
|
108
|
<Box sx={{ width: '100%' }}>
|
|
110
|
|
- <Stepper activeStep={activeStep}>
|
|
|
109
|
+ <Stepper
|
|
|
110
|
+ sx={{
|
|
|
111
|
+ flexWrap :'wrap'
|
|
|
112
|
+ }}
|
|
|
113
|
+ activeStep={activeStep}>
|
|
111
|
114
|
{steps.map((step, index) => {
|
|
112
|
115
|
const stepProps = {};
|
|
113
|
116
|
const labelProps = {};
|
|
|
@@ -116,7 +119,9 @@ export function HelpModal (props) {
|
|
116
|
119
|
}
|
|
117
|
120
|
return (
|
|
118
|
121
|
<Step key={step.label} {...stepProps}>
|
|
119
|
|
- <StepLabel {...labelProps}>{step.label}</StepLabel>
|
|
|
122
|
+ <StepLabel
|
|
|
123
|
+ sx={{ margin:1}}
|
|
|
124
|
+ {...labelProps}>{step.label}</StepLabel>
|
|
120
|
125
|
</Step>
|
|
121
|
126
|
);
|
|
122
|
127
|
})}
|
|
|
@@ -132,14 +137,14 @@ export function HelpModal (props) {
|
|
132
|
137
|
</Box>
|
|
133
|
138
|
</React.Fragment>
|
|
134
|
139
|
) : (
|
|
135
|
|
- <React.Fragment>
|
|
|
140
|
+ <React.Fragment>
|
|
136
|
141
|
|
|
137
|
|
- <Box style={{ padding : 25, marginTop : 25}}>
|
|
138
|
|
- {steps[activeStep].operation}
|
|
139
|
|
- </Box>
|
|
|
142
|
+ <Box style={{ padding: 25, marginTop: 25 }}>
|
|
|
143
|
+ {steps[activeStep].operation}
|
|
|
144
|
+ </Box>
|
|
140
|
145
|
|
|
141
|
|
- </React.Fragment>
|
|
142
|
|
- )}
|
|
|
146
|
+ </React.Fragment>
|
|
|
147
|
+ )}
|
|
143
|
148
|
</Box>
|
|
144
|
149
|
|
|
145
|
150
|
</Modal.Body>
|