Fix unhappy typescript
This commit is contained in:
parent
5473edc006
commit
02f83c58f5
1 changed files with 1 additions and 2 deletions
|
@ -74,8 +74,7 @@ const StyledButton = styled.button<Omit<Props, 'isLoading'>>`
|
|||
&:disabled { opacity: 0.55; cursor: default }
|
||||
`;
|
||||
|
||||
type ComponentProps = Props &
|
||||
Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof Props>;
|
||||
type ComponentProps = Omit<JSX.IntrinsicElements['button'], 'ref' | keyof Props> & Props;
|
||||
|
||||
const Button: React.FC<ComponentProps> = ({ children, isLoading, ...props }) => (
|
||||
<StyledButton {...props}>
|
||||
|
|
Loading…
Reference in a new issue