Browse Source

clean arch

amenpunk 3 years ago
parent
commit
5c659d2ab8
2 changed files with 5 additions and 29 deletions
  1. 2 3
      src/Components/Password/Steps/four.js
  2. 3 26
      src/Components/Password/Steps/two.js

+ 2 - 3
src/Components/Password/Steps/four.js

@@ -3,8 +3,7 @@ import * as Yup from 'yup';
3 3
 import { useFormik, Form, FormikProvider } from 'formik';
4 4
 
5 5
 import {
6
-    Box, Button, Stack, Checkbox,
7
-    TextField, Autocomplete,
6
+    Box, Button, Stack, TextField,
8 7
 } from '@mui/material';
9 8
 
10 9
 
@@ -28,7 +27,7 @@ export function StepFour(props) {
28 27
         validationSchema: PlazaScheme,
29 28
     });
30 29
 
31
-    const {errors, touched, handleSubmit, getFieldProps, setValues } = formik;
30
+    const { handleSubmit } = formik;
32 31
 
33 32
     return (
34 33
         <FormikProvider style={{ padding : 25 }} value={formik}>

+ 3 - 26
src/Components/Password/Steps/two.js

@@ -4,18 +4,10 @@ import * as Yup from 'yup';
4 4
 import { useFormik, Form, FormikProvider } from 'formik';
5 5
 
6 6
 import {
7
-    Box, Button, Stack, Checkbox,
8
-    TextField, Autocomplete,Select,FormControl,MenuItem,InputLabel
7
+    Box, Button, Stack, Select,
8
+    FormControl,MenuItem,InputLabel
9 9
 } from '@mui/material';
10 10
 
11
-import {
12
-    CheckBox as CheckBoxIcon,
13
-    CheckBoxOutlineBlank as CheckBoxOutlineBlankIcon
14
-} from '@mui/icons-material';
15
-
16
-const icon = <CheckBoxOutlineBlankIcon fontSize="small" />;
17
-const checkedIcon = <CheckBoxIcon fontSize="small" />;
18
-
19 11
 export function StepTwo(props) {
20 12
 
21 13
     const PlazaScheme = Yup.object().shape({
@@ -41,7 +33,7 @@ export function StepTwo(props) {
41 33
         setAge(event.target.value);
42 34
     };
43 35
 
44
-    const {errors, touched, handleSubmit, getFieldProps, setValues } = formik;
36
+    const { handleSubmit,} = formik;
45 37
 
46 38
     return (
47 39
         <FormikProvider style={{ padding : 25 }} value={formik}>
@@ -88,18 +80,3 @@ export function StepTwo(props) {
88 80
         </FormikProvider>
89 81
     );
90 82
 }
91
-const top100Films = [
92
-    { label: 'City of God', year: 2002 },
93
-    { label: 'Se7en', year: 1995 },
94
-    { label: 'The Silence of the Lambs', year: 1991 },
95
-    { label: "It's a Wonderful Life", year: 1946 },
96
-    { label: 'Life Is Beautiful', year: 1997 },
97
-    { label: 'The Usual Suspects', year: 1995 },
98
-    { label: 'Grave of the Fireflies', year: 1988 },
99
-    { label: 'Paths of Glory', year: 1957 },
100
-    { label: 'Django Unchained', year: 2012 },
101
-    { label: 'The Shining', year: 1980 },
102
-    { label: 'WALL·E', year: 2008 },
103
-    { label: 'American Beauty', year: 1999 },
104
-    { label: 'The Dark Knight Rises', year: 2012 },
105
-];