@insforge/react 0.5.10 → 0.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms.cjs +2 -2
- package/dist/atoms.cjs.map +1 -1
- package/dist/atoms.js +2 -2
- package/dist/atoms.js.map +1 -1
- package/dist/components.cjs +2 -2
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +2 -2
- package/dist/components.js.map +1 -1
- package/dist/forms.cjs +2 -2
- package/dist/forms.cjs.map +1 -1
- package/dist/forms.js +2 -2
- package/dist/forms.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1090,7 +1090,7 @@ function AuthEmailVerificationStep({
|
|
|
1090
1090
|
const isLinkMethod = method === "link";
|
|
1091
1091
|
const displayDescription = isLinkMethod ? "We've sent an email to {email}. Please check your email to confirm your account before signing in. The confirmation link expires in 10 minutes." : "We've sent a verification code to your inbox at {email}. Enter it below to proceed.";
|
|
1092
1092
|
useEffect(() => {
|
|
1093
|
-
if (
|
|
1093
|
+
if (resendDisabled && resendCountdown > 0) {
|
|
1094
1094
|
const timer = setInterval(() => {
|
|
1095
1095
|
setResendCountdown((prev) => {
|
|
1096
1096
|
if (prev <= 1) {
|
|
@@ -1102,7 +1102,7 @@ function AuthEmailVerificationStep({
|
|
|
1102
1102
|
}, 1e3);
|
|
1103
1103
|
return () => clearInterval(timer);
|
|
1104
1104
|
}
|
|
1105
|
-
}, [
|
|
1105
|
+
}, [resendDisabled, resendCountdown]);
|
|
1106
1106
|
const handleResend = async () => {
|
|
1107
1107
|
setResendDisabled(true);
|
|
1108
1108
|
setResendCountdown(60);
|