summaryrefslogtreecommitdiff
path: root/client/src/components/LabelCard
diff options
context:
space:
mode:
authorRohan Raj Gupta <[email protected]>2022-08-14 00:23:57 +0530
committerGitHub <[email protected]>2022-08-14 00:23:57 +0530
commit67b2e265a1731e1ad91491563eab66061013c1a4 (patch)
tree3419d20f735c0889bfcc19f3dbc898576624b1cc /client/src/components/LabelCard
parent4e99bfe1878620769d48532b182692e51c7266ef (diff)
parentec423572aaf8ecf80a409fd9a03d73b5d31e444f (diff)
Merge pull request #4 from Blaster4385/develop
Implemented update UI
Diffstat (limited to 'client/src/components/LabelCard')
-rw-r--r--client/src/components/LabelCard/LabelCard.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/components/LabelCard/LabelCard.jsx b/client/src/components/LabelCard/LabelCard.jsx
index 42ba7bf..dd02050 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, onChange }) => {
+const LabelCard = ({ id, name, value, title, image, onChange, readOnly }) => {
return (
<div className={styles.labelcard}>
<label htmlFor={id} className={styles.card}>
@@ -16,6 +16,7 @@ const LabelCard = ({ id, name, value, title, image, onChange }) => {
value={value}
required
onChange={onChange}
+ disabled={readOnly}
/>
</div>
)