tek-wallet 0.0.95 → 0.0.96
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.
|
@@ -52,7 +52,7 @@ var CustomOtpInput = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
52
52
|
outline: "none",
|
|
53
53
|
color: "#ffffff",
|
|
54
54
|
backgroundColor: "#ffffff29",
|
|
55
|
-
}, renderInput: function (props) { return (0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "decimal" })); } }))), otpInputType !== OtpInputType.
|
|
55
|
+
}, renderInput: function (props) { return (0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "decimal" })); } }))), otpInputType !== OtpInputType.PASSWORD && ((0, jsx_runtime_1.jsx)(react_otp_input_1.default, __assign({}, rest, { renderInput: function (props) { return (0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "text" })); } })))] }));
|
|
56
56
|
});
|
|
57
57
|
CustomOtpInput.displayName = "CustomOtpInput";
|
|
58
58
|
exports.default = CustomOtpInput;
|
|
@@ -72,7 +72,6 @@ var CreateWalletView = function (props) {
|
|
|
72
72
|
var swiperControlledRef = (0, react_2.useRef)(null);
|
|
73
73
|
var childPageLayoutRef = (0, react_2.useRef)(null);
|
|
74
74
|
var _c = (0, react_2.useState)(CreateWalletViewStep.CREATE_PASSCODE), currentStep = _c[0], setCurrentStep = _c[1];
|
|
75
|
-
var otpInputRef = (0, react_2.useRef)(null);
|
|
76
75
|
var createWallet = (0, useWalletData_1.default)().createWallet;
|
|
77
76
|
var gotoStep = function (step) {
|
|
78
77
|
var _a;
|
|
@@ -123,10 +122,6 @@ var CreateWalletView = function (props) {
|
|
|
123
122
|
* validate otp here
|
|
124
123
|
*/
|
|
125
124
|
if (value.length === passcodeLength) {
|
|
126
|
-
setTimeout(function () {
|
|
127
|
-
var _a;
|
|
128
|
-
(_a = otpInputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
129
|
-
}, 100);
|
|
130
125
|
createWallet({
|
|
131
126
|
passcode: value,
|
|
132
127
|
appSlug: process.env.NEXT_PUBLIC_TEK_WALLET_APP_SLUG || "",
|