From 5b58223f9d722da549bb60c20453ed82bd74a75a Mon Sep 17 00:00:00 2001 From: Timo K Date: Tue, 5 Jul 2022 17:44:09 +0200 Subject: [PATCH] fix refs --- src/button/Button.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/button/Button.tsx b/src/button/Button.tsx index 5bea814f..cbaf715f 100644 --- a/src/button/Button.tsx +++ b/src/button/Button.tsx @@ -75,7 +75,7 @@ interface Props { onPressStart: (e: PressEvent) => void; [index: string]: unknown; } -export const Button = forwardRef( +export const Button = forwardRef( ( { variant = "default", @@ -91,7 +91,7 @@ export const Button = forwardRef( }, ref ) => { - const buttonRef = useObjectRef(ref); + const buttonRef = useObjectRef(ref); const { buttonProps } = useButton( { onPress, onPressStart, ...rest }, buttonRef