From ec9969de3c87d0b53eda933f0dcad9cb1732c315 Mon Sep 17 00:00:00 2001 From: Rushi Vishavadia Date: Sat, 21 Dec 2024 18:01:34 +0530 Subject: [PATCH] Set default type for a submit button --- src/components/Buttons/SubmitButton.jsx | 4 +++- src/icons/package.json | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Buttons/SubmitButton.jsx b/src/components/Buttons/SubmitButton.jsx index 0513db2a..a7f8e300 100644 --- a/src/components/Buttons/SubmitButton.jsx +++ b/src/components/Buttons/SubmitButton.jsx @@ -20,8 +20,9 @@ export const SubmitButton = ({ isLoading, isSuccess, disabled = false, - className, variant = "standard", + type = "submit", + className, children, ...rest }) => { @@ -44,6 +45,7 @@ export const SubmitButton = ({ return (