From 0b11c7d7851d8359d3ee431d47eb32e20b72a4d4 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Mon, 22 Mar 2021 01:30:55 +0100 Subject: [PATCH] Update input props --- components/Input.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/Input.tsx b/components/Input.tsx index 1b9b8a0..86ac6e7 100644 --- a/components/Input.tsx +++ b/components/Input.tsx @@ -7,6 +7,7 @@ interface Props { type: 'text' | 'email'; variant: 'small' | 'big'; name: string; + value: string; onChange?: (event: React.ChangeEvent) => void; } @@ -31,6 +32,7 @@ const Input: FC = ({ type = 'text', variant = 'small', name, + value, placeholder, className, onChange @@ -42,6 +44,7 @@ const Input: FC = ({ dark={dark} type={type} name={name} + value={value} placeholder={placeholder} className={className} onChange={onChange} @@ -50,6 +53,7 @@ const Input: FC = ({