Skip to content

Commit 02f83c5

Browse files
committed
Fix unhappy typescript
1 parent 5473edc commit 02f83c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/scripts/components/elements/Button.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ const StyledButton = styled.button<Omit<Props, 'isLoading'>>`
7474
&:disabled { opacity: 0.55; cursor: default }
7575
`;
7676

77-
type ComponentProps = Props &
78-
Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof Props>;
77+
type ComponentProps = Omit<JSX.IntrinsicElements['button'], 'ref' | keyof Props> & Props;
7978

8079
const Button: React.FC<ComponentProps> = ({ children, isLoading, ...props }) => (
8180
<StyledButton {...props}>

0 commit comments

Comments
 (0)