Skip to content

Commit 1ad5f39

Browse files
committed
Set default type for a submit button
1 parent 7e73d7d commit 1ad5f39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Buttons/SubmitButton.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ export const SubmitButton = ({
2020
isLoading,
2121
isSuccess,
2222
disabled = false,
23-
className,
2423
variant = "standard",
24+
type = "submit",
25+
className,
2526
children,
2627
...rest
2728
}) => {
@@ -44,6 +45,7 @@ export const SubmitButton = ({
4445

4546
return (
4647
<Button
48+
type={type}
4749
color={color}
4850
disabled={showTransition || disabled}
4951
variant={variant}

0 commit comments

Comments
 (0)