Skip to content

Commit

Permalink
fix(app-signup): disable button on resend email loading and show error
Browse files Browse the repository at this point in the history
  • Loading branch information
rams23 committed Jan 2, 2021
1 parent 0caf37f commit af70e7e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ const EmailVerificationRequired: React.FC<Props> = () => {
<div>
{t('signup.verificationRequired.message')}

<button onClick={resendEmail}>{t('signup.verificationRequired.resend')}</button>
<button disabled={loading} onClick={resendEmail}>
{t('signup.verificationRequired.resend')}
</button>
{success ? t('signup.verificationRequired.resendSuccess') : null}
{translatedError ? <span className="error-message">{translatedError}</span> : null}
</div>
);
};
Expand Down

0 comments on commit af70e7e

Please sign in to comment.