Skip to content

Commit dc9c53c

Browse files
committed
fix: add default for prop types
1 parent 331cf2b commit dc9c53c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Shared/Components/Button/Button.component.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ import './button.scss'
5757
*
5858
*/
5959
const Button = ({
60+
dataTestId,
61+
text,
6062
variant = ButtonVariantType.primary,
6163
size = ComponentSizeType.large,
6264
style = ButtonStyleType.default,
63-
text,
64-
startIcon,
65-
endIcon,
66-
disabled,
67-
isLoading,
68-
showTippy,
69-
tippyContent,
65+
startIcon = null,
66+
endIcon = null,
67+
disabled = false,
68+
isLoading = false,
69+
showTippy = false,
70+
tippyContent = null,
7071
type = 'button',
71-
dataTestId,
7272
...props
7373
}: ButtonProps) => {
7474
const isDisabled = disabled || isLoading

0 commit comments

Comments
 (0)