Skip to content

Commit ec9969d

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

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/Buttons/SubmitButton.jsx

+3-1
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}

src/icons/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"main": "build/icons.es.js",
1414
"module": "build/icons.es.js",
1515
"scripts": {
16-
"preinstall": "vite build",
1716
"prepare": "vite build",
1817
"build": "vite build",
1918
"format": "prettier --write -l src",

0 commit comments

Comments
 (0)