Fix unhappy typescript

This commit is contained in:
Dane Everitt 2020-07-04 13:31:00 -07:00
parent 5473edc006
commit 02f83c58f5
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -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}>