@basiq/connect-auth 1.0.8 → 1.0.9
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/components/pages/Page.d.ts +1 -0
- package/dist/connect-auth.cjs.development.js +7 -4
- package/dist/connect-auth.cjs.development.js.map +1 -1
- package/dist/connect-auth.cjs.production.min.js +1 -1
- package/dist/connect-auth.cjs.production.min.js.map +1 -1
- package/dist/connect-auth.esm.js +7 -4
- package/dist/connect-auth.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/connect-auth.esm.js
CHANGED
|
@@ -662,7 +662,8 @@ function Page(props) {
|
|
|
662
662
|
title = props.title,
|
|
663
663
|
subTitle = props.subTitle,
|
|
664
664
|
shadow = props.shadow,
|
|
665
|
-
onBack = props.onBack
|
|
665
|
+
onBack = props.onBack,
|
|
666
|
+
backDisabled = props.backDisabled;
|
|
666
667
|
var _useTranslation = useTranslation(),
|
|
667
668
|
t = _useTranslation.t;
|
|
668
669
|
return React.createElement(PageStyled, {
|
|
@@ -670,7 +671,8 @@ function Page(props) {
|
|
|
670
671
|
}, onBack && React.createElement(Button, {
|
|
671
672
|
onClick: onBack,
|
|
672
673
|
label: t('back'),
|
|
673
|
-
buttonType: "back"
|
|
674
|
+
buttonType: "back",
|
|
675
|
+
disabled: backDisabled
|
|
674
676
|
}), title && React.createElement("h3", null, title), subTitle && React.createElement(PageSubtitle, null, subTitle), React.createElement(PageMainContainer, null, children), React.createElement(PageControlsSection, {
|
|
675
677
|
notEmpty: ((_buttons$length = buttons == null ? void 0 : buttons.length) != null ? _buttons$length : 0) > 0
|
|
676
678
|
}, React.createElement(PageShadowWrapper, null, shadow && React.createElement(PageShadow, null), buttons == null ? void 0 : buttons.map(function (b, index) {
|
|
@@ -1159,7 +1161,8 @@ function AuthScreen(_ref) {
|
|
|
1159
1161
|
}),
|
|
1160
1162
|
shadow: shadow,
|
|
1161
1163
|
buttons: buttons,
|
|
1162
|
-
onBack: onBack
|
|
1164
|
+
onBack: onBack,
|
|
1165
|
+
backDisabled: tooManyAttemps
|
|
1163
1166
|
}, React.createElement(InnerContainer, null, React.createElement(InputContainer, null, React.createElement(InputStyled, {
|
|
1164
1167
|
pattern: "\\d{4}",
|
|
1165
1168
|
inputMode: "numeric",
|
|
@@ -1179,7 +1182,7 @@ function AuthScreen(_ref) {
|
|
|
1179
1182
|
}, error), React.createElement(PageConnectFooterText, null, React.createElement("span", null, React.createElement(React.Fragment, null, t('didnt_receive_the_code'), " ", React.createElement(DivAsLink, {
|
|
1180
1183
|
disabled: tooManyAttemps || resendLoading,
|
|
1181
1184
|
onClick: function onClick() {
|
|
1182
|
-
return !resendLoading && handleResend();
|
|
1185
|
+
return !tooManyAttemps && !resendLoading && handleResend();
|
|
1183
1186
|
}
|
|
1184
1187
|
}, t('resend_sms')))))), React.createElement(LoadingModal, {
|
|
1185
1188
|
isOpen: loading
|