From 5f8f6f98c2c47ca878aadb893b0d64a0c66316aa Mon Sep 17 00:00:00 2001
From: rohan09-raj <rajrohan1914@gmail.com>
Date: Tue, 2 Aug 2022 00:06:39 +0530
Subject: added useState and made input functional

---
 client/src/components/LabelCard/LabelCard.jsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'client/src/components/LabelCard/LabelCard.jsx')

diff --git a/client/src/components/LabelCard/LabelCard.jsx b/client/src/components/LabelCard/LabelCard.jsx
index be02f01..42ba7bf 100644
--- a/client/src/components/LabelCard/LabelCard.jsx
+++ b/client/src/components/LabelCard/LabelCard.jsx
@@ -1,7 +1,7 @@
 import React from 'react'
 import styles from './LabelCard.module.css'
 
-const LabelCard = ({ id, name, value, title, image }) => {
+const LabelCard = ({ id, name, value, title, image, onChange }) => {
   return (
     <div className={styles.labelcard}>
       <label htmlFor={id} className={styles.card}>
@@ -15,6 +15,7 @@ const LabelCard = ({ id, name, value, title, image }) => {
         name={name}
         value={value}
         required
+        onChange={onChange}
       />
     </div>
   )
-- 
cgit 

