fix button spread props

This commit is contained in:
Pavel Prichodko 2023-03-22 10:59:17 +01:00
parent db7befaec2
commit 25eb3f24f3
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ const Button = (props: Props, ref: Ref<HTMLButtonElement>) => {
children, children,
icon, icon,
iconAfter, iconAfter,
...rest ...buttonProps
} = props } = props
// TODO: provider aria-label if button has only icon // TODO: provider aria-label if button has only icon
@ -56,7 +56,7 @@ const Button = (props: Props, ref: Ref<HTMLButtonElement>) => {
return ( return (
<Base <Base
{...rest} {...(buttonProps as unknown as StackProps)} // TODO: Tamagui has incorrect types for PressableProps
ref={ref} ref={ref}
variant={variant} variant={variant}
radius={shape === 'circle' ? 'full' : size} radius={shape === 'circle' ? 'full' : size}