dhre-ui-kit 0.0.309 → 0.0.310
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/lib/index.d.ts +1 -0
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +2 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -4052,6 +4052,7 @@ const OTPInput = React.forwardRef(
|
|
|
4052
4052
|
resendOTP,
|
|
4053
4053
|
errorMessage,
|
|
4054
4054
|
testId = "",
|
|
4055
|
+
errorMessageMaxReachCountProps,
|
|
4055
4056
|
otpContainerStyle,
|
|
4056
4057
|
otpHeaderTextStyle,
|
|
4057
4058
|
textInputStyle,
|
|
@@ -4098,7 +4099,7 @@ const OTPInput = React.forwardRef(
|
|
|
4098
4099
|
const onClickResendOTP = () => {
|
|
4099
4100
|
if (resendOTPCount > maxResendCount - 1) {
|
|
4100
4101
|
setErrorMessageMaxReachCount(
|
|
4101
|
-
"You have exceeded the maximum number of attempts."
|
|
4102
|
+
errorMessageMaxReachCountProps ? errorMessageMaxReachCountProps : "You have exceeded the maximum number of attempts."
|
|
4102
4103
|
);
|
|
4103
4104
|
}
|
|
4104
4105
|
if (resendOTPCount < maxResendCount) {
|