|
@@ -5,7 +5,7 @@ import { useFormik, Form, FormikProvider } from 'formik';
|
5
|
5
|
|
6
|
6
|
import {
|
7
|
7
|
Box, Button, Stack, Checkbox,
|
8
|
|
- TextField, Autocomplete,
|
|
8
|
+ TextField, Autocomplete,Select,FormControl,MenuItem,InputLabel
|
9
|
9
|
} from '@mui/material';
|
10
|
10
|
|
11
|
11
|
import {
|
|
@@ -35,6 +35,12 @@ export function StepTwo(props) {
|
35
|
35
|
validationSchema: PlazaScheme,
|
36
|
36
|
});
|
37
|
37
|
|
|
38
|
+ const [age, setAge] = React.useState('');
|
|
39
|
+
|
|
40
|
+ const handleChange = (event) => {
|
|
41
|
+ setAge(event.target.value);
|
|
42
|
+ };
|
|
43
|
+
|
38
|
44
|
const {errors, touched, handleSubmit, getFieldProps, setValues } = formik;
|
39
|
45
|
|
40
|
46
|
return (
|
|
@@ -42,38 +48,20 @@ export function StepTwo(props) {
|
42
|
48
|
<Form autoComplete="off" noValidate onSubmit={handleSubmit}>
|
43
|
49
|
<Stack spacing={2}>
|
44
|
50
|
|
45
|
|
- <Autocomplete
|
46
|
|
- multiple
|
47
|
|
- id="checkboxes-tags-demo"
|
48
|
|
- options={top100Films}
|
49
|
|
- disableCloseOnSelect
|
50
|
|
- getOptionLabel={(option) => option.label}
|
51
|
|
- onChange={(a,b,c) => {
|
52
|
|
- setValues({
|
53
|
|
- puesto : b[0]
|
54
|
|
- })
|
55
|
|
- }}
|
56
|
|
- renderOption={(props, option, { selected }) => (
|
57
|
|
- <li {...props}>
|
58
|
|
- <Checkbox
|
59
|
|
- icon={icon}
|
60
|
|
- checkedIcon={checkedIcon}
|
61
|
|
- // style={{ marginRight: 8 }}
|
62
|
|
- checked={selected}
|
63
|
|
- />
|
64
|
|
- {option.label}
|
65
|
|
- </li>
|
66
|
|
- )}
|
67
|
|
- renderInput={(params) => (
|
68
|
|
- <TextField
|
69
|
|
- {...getFieldProps('puesto')}
|
70
|
|
- error={Boolean(touched.puesto && errors.puesto)}
|
71
|
|
- helperText={touched.puesto && errors.puesto}
|
72
|
|
- {...params}
|
73
|
|
- label="Checkboxes" placeholder="Favorites"
|
74
|
|
- />
|
75
|
|
- )}
|
76
|
|
- />
|
|
51
|
+ <FormControl fullWidth>
|
|
52
|
+ <InputLabel id="demo-simple-select-label">Puestos</InputLabel>
|
|
53
|
+ <Select
|
|
54
|
+ labelId="demo-simple-select-label"
|
|
55
|
+ id="demo-simple-select"
|
|
56
|
+ value={age}
|
|
57
|
+ label="Puestos"
|
|
58
|
+ onChange={handleChange}
|
|
59
|
+ >
|
|
60
|
+ <MenuItem value={10}>Ten</MenuItem>
|
|
61
|
+ <MenuItem value={20}>Twenty</MenuItem>
|
|
62
|
+ <MenuItem value={30}>Thirty</MenuItem>
|
|
63
|
+ </Select>
|
|
64
|
+ </FormControl>
|
77
|
65
|
|
78
|
66
|
<Box sx={{ mb: 2 }}>
|
79
|
67
|
<div style={{ paddingTop : 15}}>
|
|
@@ -101,80 +89,12 @@ export function StepTwo(props) {
|
101
|
89
|
);
|
102
|
90
|
}
|
103
|
91
|
const top100Films = [
|
104
|
|
- { label: 'The Shawshank Redemption', year: 1994 },
|
105
|
|
- { label: 'The Godfather', year: 1972 },
|
106
|
|
- { label: 'The Godfather: Part II', year: 1974 },
|
107
|
|
- { label: 'The Dark Knight', year: 2008 },
|
108
|
|
- { label: '12 Angry Men', year: 1957 },
|
109
|
|
- { label: "Schindler's List", year: 1993 },
|
110
|
|
- { label: 'Pulp Fiction', year: 1994 },
|
111
|
|
- {
|
112
|
|
- label: 'The Lord of the Rings: The Return of the King',
|
113
|
|
- year: 2003,
|
114
|
|
- },
|
115
|
|
- { label: 'The Good, the Bad and the Ugly', year: 1966 },
|
116
|
|
- { label: 'Fight Club', year: 1999 },
|
117
|
|
- {
|
118
|
|
- label: 'The Lord of the Rings: The Fellowship of the Ring',
|
119
|
|
- year: 2001,
|
120
|
|
- },
|
121
|
|
- {
|
122
|
|
- label: 'Star Wars: Episode V - The Empire Strikes Back',
|
123
|
|
- year: 1980,
|
124
|
|
- },
|
125
|
|
- { label: 'Forrest Gump', year: 1994 },
|
126
|
|
- { label: 'Inception', year: 2010 },
|
127
|
|
- {
|
128
|
|
- label: 'The Lord of the Rings: The Two Towers',
|
129
|
|
- year: 2002,
|
130
|
|
- },
|
131
|
|
- { label: "One Flew Over the Cuckoo's Nest", year: 1975 },
|
132
|
|
- { label: 'Goodfellas', year: 1990 },
|
133
|
|
- { label: 'The Matrix', year: 1999 },
|
134
|
|
- { label: 'Seven Samurai', year: 1954 },
|
135
|
|
- {
|
136
|
|
- label: 'Star Wars: Episode IV - A New Hope',
|
137
|
|
- year: 1977,
|
138
|
|
- },
|
139
|
92
|
{ label: 'City of God', year: 2002 },
|
140
|
93
|
{ label: 'Se7en', year: 1995 },
|
141
|
94
|
{ label: 'The Silence of the Lambs', year: 1991 },
|
142
|
95
|
{ label: "It's a Wonderful Life", year: 1946 },
|
143
|
96
|
{ label: 'Life Is Beautiful', year: 1997 },
|
144
|
97
|
{ label: 'The Usual Suspects', year: 1995 },
|
145
|
|
- { label: 'Léon: The Professional', year: 1994 },
|
146
|
|
- { label: 'Spirited Away', year: 2001 },
|
147
|
|
- { label: 'Saving Private Ryan', year: 1998 },
|
148
|
|
- { label: 'Once Upon a Time in the West', year: 1968 },
|
149
|
|
- { label: 'American History X', year: 1998 },
|
150
|
|
- { label: 'Interstellar', year: 2014 },
|
151
|
|
- { label: 'Casablanca', year: 1942 },
|
152
|
|
- { label: 'City Lights', year: 1931 },
|
153
|
|
- { label: 'Psycho', year: 1960 },
|
154
|
|
- { label: 'The Green Mile', year: 1999 },
|
155
|
|
- { label: 'The Intouchables', year: 2011 },
|
156
|
|
- { label: 'Modern Times', year: 1936 },
|
157
|
|
- { label: 'Raiders of the Lost Ark', year: 1981 },
|
158
|
|
- { label: 'Rear Window', year: 1954 },
|
159
|
|
- { label: 'The Pianist', year: 2002 },
|
160
|
|
- { label: 'The Departed', year: 2006 },
|
161
|
|
- { label: 'Terminator 2: Judgment Day', year: 1991 },
|
162
|
|
- { label: 'Back to the Future', year: 1985 },
|
163
|
|
- { label: 'Whiplash', year: 2014 },
|
164
|
|
- { label: 'Gladiator', year: 2000 },
|
165
|
|
- { label: 'Memento', year: 2000 },
|
166
|
|
- { label: 'The Prestige', year: 2006 },
|
167
|
|
- { label: 'The Lion King', year: 1994 },
|
168
|
|
- { label: 'Apocalypse Now', year: 1979 },
|
169
|
|
- { label: 'Alien', year: 1979 },
|
170
|
|
- { label: 'Sunset Boulevard', year: 1950 },
|
171
|
|
- {
|
172
|
|
- label: 'Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb',
|
173
|
|
- year: 1964,
|
174
|
|
- },
|
175
|
|
- { label: 'The Great Dictator', year: 1940 },
|
176
|
|
- { label: 'Cinema Paradiso', year: 1988 },
|
177
|
|
- { label: 'The Lives of Others', year: 2006 },
|
178
|
98
|
{ label: 'Grave of the Fireflies', year: 1988 },
|
179
|
99
|
{ label: 'Paths of Glory', year: 1957 },
|
180
|
100
|
{ label: 'Django Unchained', year: 2012 },
|
|
@@ -182,49 +102,4 @@ const top100Films = [
|
182
|
102
|
{ label: 'WALL·E', year: 2008 },
|
183
|
103
|
{ label: 'American Beauty', year: 1999 },
|
184
|
104
|
{ label: 'The Dark Knight Rises', year: 2012 },
|
185
|
|
- { label: 'Princess Mononoke', year: 1997 },
|
186
|
|
- { label: 'Aliens', year: 1986 },
|
187
|
|
- { label: 'Oldboy', year: 2003 },
|
188
|
|
- { label: 'Once Upon a Time in America', year: 1984 },
|
189
|
|
- { label: 'Witness for the Prosecution', year: 1957 },
|
190
|
|
- { label: 'Das Boot', year: 1981 },
|
191
|
|
- { label: 'Citizen Kane', year: 1941 },
|
192
|
|
- { label: 'North by Northwest', year: 1959 },
|
193
|
|
- { label: 'Vertigo', year: 1958 },
|
194
|
|
- {
|
195
|
|
- label: 'Star Wars: Episode VI - Return of the Jedi',
|
196
|
|
- year: 1983,
|
197
|
|
- },
|
198
|
|
- { label: 'Reservoir Dogs', year: 1992 },
|
199
|
|
- { label: 'Braveheart', year: 1995 },
|
200
|
|
- { label: 'M', year: 1931 },
|
201
|
|
- { label: 'Requiem for a Dream', year: 2000 },
|
202
|
|
- { label: 'Amélie', year: 2001 },
|
203
|
|
- { label: 'A Clockwork Orange', year: 1971 },
|
204
|
|
- { label: 'Like Stars on Earth', year: 2007 },
|
205
|
|
- { label: 'Taxi Driver', year: 1976 },
|
206
|
|
- { label: 'Lawrence of Arabia', year: 1962 },
|
207
|
|
- { label: 'Double Indemnity', year: 1944 },
|
208
|
|
- {
|
209
|
|
- label: 'Eternal Sunshine of the Spotless Mind',
|
210
|
|
- year: 2004,
|
211
|
|
- },
|
212
|
|
- { label: 'Amadeus', year: 1984 },
|
213
|
|
- { label: 'To Kill a Mockingbird', year: 1962 },
|
214
|
|
- { label: 'Toy Story 3', year: 2010 },
|
215
|
|
- { label: 'Logan', year: 2017 },
|
216
|
|
- { label: 'Full Metal Jacket', year: 1987 },
|
217
|
|
- { label: 'Dangal', year: 2016 },
|
218
|
|
- { label: 'The Sting', year: 1973 },
|
219
|
|
- { label: '2001: A Space Odyssey', year: 1968 },
|
220
|
|
- { label: "Singin' in the Rain", year: 1952 },
|
221
|
|
- { label: 'Toy Story', year: 1995 },
|
222
|
|
- { label: 'Bicycle Thieves', year: 1948 },
|
223
|
|
- { label: 'The Kid', year: 1921 },
|
224
|
|
- { label: 'Inglourious Basterds', year: 2009 },
|
225
|
|
- { label: 'Snatch', year: 2000 },
|
226
|
|
- { label: '3 Idiots', year: 2009 },
|
227
|
|
- { label: 'Monty Python and the Holy Grail', year: 1975 },
|
228
|
105
|
];
|
229
|
|
-
|
230
|
|
-
|