Skip to content

Commit 77d33b1

Browse files
committed
fix(Button): div should be button, somehow was changed in 8914020
1 parent 2d8ae27 commit 77d33b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/common/components/Button/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type ButtonProps = {
1010
} & Record<string, any>;
1111

1212
export const Button: React.FC<ButtonProps> = React.forwardRef(
13-
({ margin, ...props }: ButtonProps, ref: React.ForwardedRef<HTMLDivElement>) => {
14-
return <div ref={ref} {...props} css={styles({ margin })} />;
13+
({ margin, ...props }: ButtonProps, ref: React.ForwardedRef<HTMLButtonElement>) => {
14+
return <button type="button" ref={ref} {...props} css={styles({ margin })} />;
1515
},
1616
);

0 commit comments

Comments
 (0)