From f47c3f4349cb68460dadf1fc381e3ceb52fe009a Mon Sep 17 00:00:00 2001
From: rohan09-raj <rajrohan1914@gmail.com>
Date: Fri, 19 Aug 2022 21:06:48 +0530
Subject: minor fixes

---
 client/src/components/SubmitButton/SubmitButton.jsx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

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

diff --git a/client/src/components/SubmitButton/SubmitButton.jsx b/client/src/components/SubmitButton/SubmitButton.jsx
index bcf3543..ed796d9 100644
--- a/client/src/components/SubmitButton/SubmitButton.jsx
+++ b/client/src/components/SubmitButton/SubmitButton.jsx
@@ -1,10 +1,16 @@
 import React from 'react'
 import styles from './SubmitButton.module.css'
 
-const SubmitButton = ({ onClick, onChange }) => {
+const SubmitButton = ({ onClick, onChange, disabled }) => {
   return (
     <>
-      <button onClick={onClick} className={styles.submit} type="submit" onChange={onChange}>
+      <button
+        onClick={onClick}
+        className={styles.submit}
+        type="submit"
+        onChange={onChange}
+        disabled={disabled}
+      >
         <img
           className={styles.submit__image}
           src={`${process.env.PUBLIC_URL}/assets/images/next_icon.svg`}
-- 
cgit 

