From ef742ea9b2f246f74eae74169675a331679ad41c Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 26 Mar 2021 01:56:04 +0300 Subject: feat: add strong typing where possible --- src/components/Input.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/components/Input.tsx') diff --git a/src/components/Input.tsx b/src/components/Input.tsx index a8a6f31..298d14c 100644 --- a/src/components/Input.tsx +++ b/src/components/Input.tsx @@ -3,17 +3,19 @@ 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, ...props }) => { +const InputBase: React.FC = ({ label, ref, ...props }) => { return (