mirror of
https://github.com/status-im/status-web.git
synced 2025-01-11 21:24:34 +00:00
fix button spread props
This commit is contained in:
parent
db7befaec2
commit
25eb3f24f3
@ -45,7 +45,7 @@ const Button = (props: Props, ref: Ref<HTMLButtonElement>) => {
|
||||
children,
|
||||
icon,
|
||||
iconAfter,
|
||||
...rest
|
||||
...buttonProps
|
||||
} = props
|
||||
|
||||
// TODO: provider aria-label if button has only icon
|
||||
@ -56,7 +56,7 @@ const Button = (props: Props, ref: Ref<HTMLButtonElement>) => {
|
||||
|
||||
return (
|
||||
<Base
|
||||
{...rest}
|
||||
{...(buttonProps as unknown as StackProps)} // TODO: Tamagui has incorrect types for PressableProps
|
||||
ref={ref}
|
||||
variant={variant}
|
||||
radius={shape === 'circle' ? 'full' : size}
|
||||
|
Loading…
x
Reference in New Issue
Block a user