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';
interface UserState {
......
import React, { useEffect } from 'react';
import './index.css';
import { useField, Form, FormikProps, Formik } from "formik";
import { useField, FormikProps, Formik } from "formik";
import * as yup from "yup";
import { useDispatch, useSelector } from 'react-redux';
......@@ -11,7 +11,7 @@ import { Input } from '@material-ui/core';
import { InputLabel } from '@material-ui/core';
const MyTextField = ({ label, ...props }: any) => {
const [field, meta, helpers] = useField(props);
const [field, meta] = useField(props);
return (
<div>
<InputLabel className='input-label'>
......@@ -66,14 +66,8 @@ export default () => {
console.log(props)
const {
values,
touched,
errors,
dirty,
isSubmitting,
handleChange,
handleBlur,
handleSubmit,
handleReset
} = props;
return (
<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