Add checkout button

This commit is contained in:
Luis Alvarez
2020-10-09 22:40:12 -05:00
parent a92dcb851b
commit 2030255c5e
3 changed files with 21 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
const ref = useRef<typeof Component>(null)
const { buttonProps, isPressed } = useButton(
{
...props,
...rest,
// @ts-ignore onClick === onPress for our purposes
onPress: onClick,
isDisabled: disabled,
@@ -59,7 +59,6 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
aria-pressed={active}
data-variant={variant}
ref={mergeRefs([ref, buttonRef])}
{...rest}
{...buttonProps}
style={{
width,