tek-wallet 0.0.94 → 0.0.95
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.
|
@@ -43,7 +43,7 @@ var CustomOtpInput = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
43
43
|
(_a = blurButtonRef.current) === null || _a === void 0 ? void 0 : _a.click();
|
|
44
44
|
},
|
|
45
45
|
}); });
|
|
46
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("button", { ref: blurButtonRef }), otpInputType === OtpInputType.PASSWORD && ((0, jsx_runtime_1.jsx)(react_otp_input_1.default, __assign({}, rest, { inputType: "password", inputStyle: {
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("button", { ref: blurButtonRef, style: { display: "none" } }), otpInputType === OtpInputType.PASSWORD && ((0, jsx_runtime_1.jsx)(react_otp_input_1.default, __assign({}, rest, { inputType: "password", inputStyle: {
|
|
47
47
|
border: "1px solid #ffffff58",
|
|
48
48
|
borderRadius: "0.75rem",
|
|
49
49
|
width: "2.8rem",
|
|
@@ -117,14 +117,16 @@ var CreateWalletView = function (props) {
|
|
|
117
117
|
}, 1500);
|
|
118
118
|
};
|
|
119
119
|
var handleConfirmOtpChange = function (value) {
|
|
120
|
-
var _a;
|
|
121
120
|
setConfirmOtp(value);
|
|
122
|
-
(_a = otpInputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
123
121
|
console.warn("🚀 ~ handleConfirmOtpChange ~ value:", value);
|
|
124
122
|
/**
|
|
125
123
|
* validate otp here
|
|
126
124
|
*/
|
|
127
125
|
if (value.length === passcodeLength) {
|
|
126
|
+
setTimeout(function () {
|
|
127
|
+
var _a;
|
|
128
|
+
(_a = otpInputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
129
|
+
}, 100);
|
|
128
130
|
createWallet({
|
|
129
131
|
passcode: value,
|
|
130
132
|
appSlug: process.env.NEXT_PUBLIC_TEK_WALLET_APP_SLUG || "",
|