From 70dfdf23466f5468ec499b511eb07f61254374f1 Mon Sep 17 00:00:00 2001 From: robertu <4065233+robertu7@users.noreply.github.com> Date: Fri, 6 Oct 2023 15:11:07 +0700 Subject: [PATCH] fix(login): disable sendLoginCode button when mutation is loading refs: - 202309-product#ZN-0035 --- .../Forms/EmailLoginForm/OtherOptions.tsx | 13 +++++++++---- src/components/Forms/EmailLoginForm/index.tsx | 11 ++++------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/components/Forms/EmailLoginForm/OtherOptions.tsx b/src/components/Forms/EmailLoginForm/OtherOptions.tsx index db90553cb4..61f3dd1b28 100644 --- a/src/components/Forms/EmailLoginForm/OtherOptions.tsx +++ b/src/components/Forms/EmailLoginForm/OtherOptions.tsx @@ -6,15 +6,17 @@ import styles from './styles.module.css' export const SendLoginCodeButton = ({ sendLoginCode, + disabled, }: { sendLoginCode: () => void + disabled?: boolean }) => (
-