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 }
|
&:disabled { opacity: 0.55; cursor: default }
|
||||||
`;
|
`;
|
||||||
|
|
||||||
type ComponentProps = Props &
|
type ComponentProps = Omit<JSX.IntrinsicElements['button'], 'ref' | keyof Props> & Props;
|
||||||
Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof Props>;
|
|
||||||
|
|
||||||
const Button: React.FC<ComponentProps> = ({ children, isLoading, ...props }) => (
|
const Button: React.FC<ComponentProps> = ({ children, isLoading, ...props }) => (
|
||||||
<StyledButton {...props}>
|
<StyledButton {...props}>
|
||||||
|
|
Loading…
Add table
Reference in a new issue