@stokr/components-library 2.0.7 β 2.0.8
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.
|
@@ -217,6 +217,8 @@ var LoginWithOTP = function LoginWithOTP(_ref) {
|
|
|
217
217
|
console.log('π ~ file: login-with-otp-flow.js:129 ~ error:', _context2.t0);
|
|
218
218
|
if ((_context2.t0 === null || _context2.t0 === void 0 ? void 0 : _context2.t0.code) === 'auth/invalid-verification-code') {
|
|
219
219
|
handleSetPopupError('enter2fa', 'The verification code is not correct. Try again?');
|
|
220
|
+
} else if ((_context2.t0 === null || _context2.t0 === void 0 ? void 0 : _context2.t0.code) === 'auth/code-expired') {
|
|
221
|
+
handleSetPopupError('enter2fa', 'Time out. Please restart the flow and log in again');
|
|
220
222
|
} else {
|
|
221
223
|
handleSetPopupError('enter2fa', _context2.t0 === null || _context2.t0 === void 0 ? void 0 : _context2.t0.message);
|
|
222
224
|
}
|
|
@@ -145,13 +145,14 @@ var Main2FAFlow = function Main2FAFlow(_ref) {
|
|
|
145
145
|
switchOpenFlow('enable2fa', 'disable2fa');
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
}))
|
|
149
|
-
alignVertically: true,
|
|
150
|
-
noPaddingHorizontal: true,
|
|
151
|
-
noPaddingTop: true
|
|
152
|
-
}, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
148
|
+
})), successMessage && /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
153
149
|
small: true,
|
|
154
|
-
success: true
|
|
150
|
+
success: true,
|
|
151
|
+
style: {
|
|
152
|
+
position: 'absolute',
|
|
153
|
+
bottom: 0,
|
|
154
|
+
left: 0
|
|
155
|
+
}
|
|
155
156
|
}, /*#__PURE__*/_react.default.createElement("p", null, successMessage))), isFlowopen.enable2fa && /*#__PURE__*/_react.default.createElement(_enable2faFlow.default, {
|
|
156
157
|
showFlow: isFlowopen.enable2fa,
|
|
157
158
|
setShowFlow: function setShowFlow(value) {
|
|
@@ -26,7 +26,7 @@ exports.StyledSubMenu = StyledSubMenu;
|
|
|
26
26
|
var StyledHeader = _styledComponents.default.header.withConfig({
|
|
27
27
|
displayName: "Headerstyles__StyledHeader",
|
|
28
28
|
componentId: "sc-hifrdy-1"
|
|
29
|
-
})(["z-index:
|
|
29
|
+
})(["z-index:1000;position:relative;color:", ";border-bottom:1px solid rgb(237,237,237);", ""], _colors.default.black, _rwd.default.MLarge(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: ", "px;\n background-color: ", ";\n box-shadow: inset 0 -1px 0 0 ", ";\n\n ", "\n "])), _spacing.default.headerHeight, _colors.default.white, _colors.default.lightGrey, function (props) {
|
|
30
30
|
return props.noFixedPosition && "\n position:initial;\n ";
|
|
31
31
|
}));
|
|
32
32
|
exports.StyledHeader = StyledHeader;
|
|
@@ -449,6 +449,8 @@ var HeaderHoClass = /*#__PURE__*/function (_Component) {
|
|
|
449
449
|
console.log('π ~ file: HeaderHo.jsx:364 ~ error:', _context2.t0);
|
|
450
450
|
if ((_context2.t0 === null || _context2.t0 === void 0 ? void 0 : _context2.t0.code) === 'auth/invalid-verification-code') {
|
|
451
451
|
_this2.setPopupError('enter2fa', 'Thatβs not the right 2FA code. Try again');
|
|
452
|
+
} else if ((_context2.t0 === null || _context2.t0 === void 0 ? void 0 : _context2.t0.code) === 'auth/code-expired') {
|
|
453
|
+
_this2.setPopupError('enter2fa', 'Time out. Please restart the flow and log in again');
|
|
452
454
|
} else {
|
|
453
455
|
_this2.setPopupError('enter2fa', _context2.t0 === null || _context2.t0 === void 0 ? void 0 : _context2.t0.message);
|
|
454
456
|
}
|