Skip to content

Commit

Permalink
Set default type for a submit button
Browse files Browse the repository at this point in the history
  • Loading branch information
rushi committed Dec 23, 2024
1 parent 7e73d7d commit 1ad5f39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Buttons/SubmitButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ export const SubmitButton = ({
isLoading,
isSuccess,
disabled = false,
className,
variant = "standard",
type = "submit",
className,
children,
...rest
}) => {
Expand All @@ -44,6 +45,7 @@ export const SubmitButton = ({

return (
<Button
type={type}
color={color}
disabled={showTransition || disabled}
variant={variant}
Expand Down

0 comments on commit 1ad5f39

Please sign in to comment.