Skip to content

Commit

Permalink
fix: button + divider typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILLIPS71 committed Apr 21, 2024
1 parent 45053bd commit ecd41c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/react/src/components/button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import Spinner from '@/components/spinner/Spinner'

const __ELEMENT_TYPE__ = 'button'

type ComponentOwnProps = ButtonVariantProps & Omit<ButtonProps, 'children'>
type ComponentOwnProps = ButtonVariantProps & {
isLoading?: boolean
}

type ComponentProps<T extends React.ElementType> = Polymophic.ComponentPropsWithRef<T, ComponentOwnProps>

Expand Down
4 changes: 1 addition & 3 deletions packages/react/src/components/divider/Divider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import React from 'react'

const __ELEMENT_TYPE__ = 'hr'

type ComponentOwnProps = DividerVariantProps & {
icon: React.ReactNode
}
type ComponentOwnProps = DividerVariantProps

type ComponentProps<T extends React.ElementType> = Polymophic.ComponentPropsWithRef<T, ComponentOwnProps>

Expand Down

0 comments on commit ecd41c7

Please sign in to comment.