Skip to content

Commit

Permalink
fix(button): fix type property
Browse files Browse the repository at this point in the history
  • Loading branch information
w0wka91 committed Jul 4, 2019
1 parent d564aa1 commit 39aeb3c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ interface Props {
children: React.ReactNode
}

type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>

function Button({
size,
intent,
Expand All @@ -26,7 +24,7 @@ function Button({
children,
className,
...rest
}: Omit<React.HTMLProps<HTMLButtonElement>, 'size'> & Props) {
}: React.ButtonHTMLAttributes<HTMLButtonElement> & Props) {
const btnSize = {
small: css`
padding: 0.4rem 0.8rem;
Expand Down

0 comments on commit 39aeb3c

Please sign in to comment.