diff --git a/src/components/pages/Plan/Form/Form.tsx b/src/components/pages/Plan/Form/Form.tsx index 9dc35c8..120030d 100644 --- a/src/components/pages/Plan/Form/Form.tsx +++ b/src/components/pages/Plan/Form/Form.tsx @@ -5,9 +5,10 @@ import { planSlice } from "store/reducers/planSlice"; import useFormWithValidation from "hooks/useFormWithValidation"; import { useAppDispatch, useAppSelector } from "hooks/redux"; -import { useEffect, useState } from "react"; +import { useEffect, useRef, useState } from "react"; export const Form: React.FC = ({ time }) => { + const inputRef = useRef() const [error, showError] = useState(false) const { values, handleChangeState, resetForm, errors, isValid } = useFormWithValidation(); @@ -40,13 +41,14 @@ export const Form: React.FC = ({ time }) => { ); }; + return (

Расскажите о себе.