From d015905be14bf5b76eb78c29bf87a7d8cbd0d103 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Sat, 1 Apr 2023 23:27:34 +0200 Subject: [PATCH] Format all files --- src/AsyncButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AsyncButton.tsx b/src/AsyncButton.tsx index 6004d4b..14ea9ce 100644 --- a/src/AsyncButton.tsx +++ b/src/AsyncButton.tsx @@ -35,7 +35,9 @@ const AsyncButton = React.forwardRef( }: AsyncButtonProps, ref?: PolymorphicRef, ) => { - const [buttonState, setButtonState] = useState(STATES.INIT); + const [buttonState, setButtonState] = useState<(typeof STATES)[keyof typeof STATES]>( + STATES.INIT, + ); const cancellablePromise = useRef>(); const timeout = useRef>(); -- 2.54.0