From d08a2e215bff8a005a8504b2233c90417de7f23d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 27 Mar 2023 16:45:41 -0500 Subject: [PATCH] AuthorizeRejectButtons: add a loading animation --- .../components/authorize-reject-buttons.tsx | 42 ++++++++++++------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/app/soapbox/components/authorize-reject-buttons.tsx b/app/soapbox/components/authorize-reject-buttons.tsx index 10ab2bbf2..81d25a63d 100644 --- a/app/soapbox/components/authorize-reject-buttons.tsx +++ b/app/soapbox/components/authorize-reject-buttons.tsx @@ -68,22 +68,32 @@ const AuthorizeRejectButtons: React.FC = ({ onAuthorize default: return ( - - +
+ + {(state === 'rejecting') && ( +
+ )} +
+
+ + {(state === 'authorizing') && ( +
+ )} +
); }