From 907da06c18b8219f774459f7810116009709e0c1 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 26 Mar 2021 02:29:54 +0300 Subject: fix: use state instead of refs --- src/components/Input.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/components/Input.tsx') diff --git a/src/components/Input.tsx b/src/components/Input.tsx index 298d14c..a8a6f31 100644 --- a/src/components/Input.tsx +++ b/src/components/Input.tsx @@ -3,19 +3,17 @@ import { Field } from 'formik'; export interface Props extends React.InputHTMLAttributes { label?: string; - ref?: React.Ref } const focusStyles = 'focus:outline-none focus:shadow focus:border-gray-400'; const baseStyles = 'p-2 border bg-white border-gray-300 rounded-sm'; -const InputBase: React.FC = ({ label, ref, ...props }) => { +const InputBase: React.FC = ({ label, ...props }) => { return (