Commit 8d73c6b3 authored by imtiny's avatar imtiny

fix warnings

parent 73f18366
import { createAction, createSlice, PayloadAction } from '@reduxjs/toolkit'; import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import { AppThunk, RootState } from '../store'; import { AppThunk, RootState } from '../store';
interface UserState { interface UserState {
......
import React, { useEffect } from 'react'; import React, { useEffect } from 'react';
import './index.css'; import './index.css';
import { useField, Form, FormikProps, Formik } from "formik"; import { useField, FormikProps, Formik } from "formik";
import * as yup from "yup"; import * as yup from "yup";
import { useDispatch, useSelector } from 'react-redux'; import { useDispatch, useSelector } from 'react-redux';
...@@ -11,7 +11,7 @@ import { Input } from '@material-ui/core'; ...@@ -11,7 +11,7 @@ import { Input } from '@material-ui/core';
import { InputLabel } from '@material-ui/core'; import { InputLabel } from '@material-ui/core';
const MyTextField = ({ label, ...props }: any) => { const MyTextField = ({ label, ...props }: any) => {
const [field, meta, helpers] = useField(props); const [field, meta] = useField(props);
return ( return (
<div> <div>
<InputLabel className='input-label'> <InputLabel className='input-label'>
...@@ -66,14 +66,8 @@ export default () => { ...@@ -66,14 +66,8 @@ export default () => {
console.log(props) console.log(props)
const { const {
values, values,
touched,
errors,
dirty,
isSubmitting,
handleChange, handleChange,
handleBlur,
handleSubmit, handleSubmit,
handleReset
} = props; } = props;
return ( return (
<form onSubmit={handleSubmit}> <form onSubmit={handleSubmit}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment