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 ec9969d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
1 change: 0 additions & 1 deletion src/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"main": "build/icons.es.js",
"module": "build/icons.es.js",
"scripts": {
"preinstall": "vite build",
"prepare": "vite build",
"build": "vite build",
"format": "prettier --write -l src",
Expand Down

0 comments on commit ec9969d

Please sign in to comment.