소스 검색

clean arch

amenpunk 4 년 전
부모
커밋
5c659d2ab8
2개의 변경된 파일5개의 추가작업 그리고 29개의 파일을 삭제
  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';
 import { useFormik, Form, FormikProvider } from 'formik';
 
 import {
-    Box, Button, Stack, Checkbox,
-    TextField, Autocomplete,
+    Box, Button, Stack, TextField,
 } from '@mui/material';
 
 
@@ -28,7 +27,7 @@ export function StepFour(props) {
         validationSchema: PlazaScheme,
     });
 
-    const {errors, touched, handleSubmit, getFieldProps, setValues } = formik;
+    const { handleSubmit } = formik;
 
     return (
         <FormikProvider style={{ padding : 25 }} value={formik}>

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

@@ -4,18 +4,10 @@ import * as Yup from 'yup';
 import { useFormik, Form, FormikProvider } from 'formik';
 
 import {
-    Box, Button, Stack, Checkbox,
-    TextField, Autocomplete,Select,FormControl,MenuItem,InputLabel
+    Box, Button, Stack, Select,
+    FormControl,MenuItem,InputLabel
 } from '@mui/material';
 
-import {
-    CheckBox as CheckBoxIcon,
-    CheckBoxOutlineBlank as CheckBoxOutlineBlankIcon
-} from '@mui/icons-material';
-
-const icon = <CheckBoxOutlineBlankIcon fontSize="small" />;
-const checkedIcon = <CheckBoxIcon fontSize="small" />;
-
 export function StepTwo(props) {
 
     const PlazaScheme = Yup.object().shape({
@@ -41,7 +33,7 @@ export function StepTwo(props) {
         setAge(event.target.value);
     };
 
-    const {errors, touched, handleSubmit, getFieldProps, setValues } = formik;
+    const { handleSubmit,} = formik;
 
     return (
         <FormikProvider style={{ padding : 25 }} value={formik}>
@@ -88,18 +80,3 @@ export function StepTwo(props) {
         </FormikProvider>
     );
 }
-const top100Films = [
-    { label: 'City of God', year: 2002 },
-    { label: 'Se7en', year: 1995 },
-    { label: 'The Silence of the Lambs', year: 1991 },
-    { label: "It's a Wonderful Life", year: 1946 },
-    { label: 'Life Is Beautiful', year: 1997 },
-    { label: 'The Usual Suspects', year: 1995 },
-    { label: 'Grave of the Fireflies', year: 1988 },
-    { label: 'Paths of Glory', year: 1957 },
-    { label: 'Django Unchained', year: 2012 },
-    { label: 'The Shining', year: 1980 },
-    { label: 'WALL·E', year: 2008 },
-    { label: 'American Beauty', year: 1999 },
-    { label: 'The Dark Knight Rises', year: 2012 },
-];