Skip to content

Commit

Permalink
fix: button types
Browse files Browse the repository at this point in the history
  • Loading branch information
obasilakis committed Nov 7, 2023
1 parent 98cdb11 commit cab12d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui/components/Button.tsx
@@ -1,11 +1,12 @@
import React, { ReactNode, Ref } from 'react';
import React, { CSSProperties, MouseEventHandler, ReactNode, Ref } from 'react';

interface ButtonProps extends React.ComponentPropsWithRef<'button'> {
children?: ReactNode;
// onClick?: any;
onClick?: MouseEventHandler<HTMLButtonElement>;
type: 'button' | 'submit' | 'reset';
disabled?: boolean;
className?: string;
style?: CSSProperties;
ref?: Ref<HTMLButtonElement>;
}
export const Button = ({
Expand Down

0 comments on commit cab12d4

Please sign in to comment.