@depay/widgets 11.1.3 → 11.2.0
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/README.md +9 -5
- package/dist/esm/index.bundle.js +1 -1
- package/dist/esm/index.evm.js +12 -4
- package/dist/esm/index.evm.js.map +1 -1
- package/dist/esm/index.js +12 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.solana.js +12 -4
- package/dist/esm/index.solana.js.map +1 -1
- package/dist/umd/index.bundle.js +1 -1
- package/dist/umd/index.evm.js +12 -4
- package/dist/umd/index.evm.js.map +1 -1
- package/dist/umd/index.js +12 -4
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/index.solana.js +12 -4
- package/dist/umd/index.solana.js.map +1 -1
- package/package.json +1 -1
package/dist/umd/index.evm.js
CHANGED
|
@@ -26066,7 +26066,8 @@
|
|
|
26066
26066
|
tokenImage = _useContext2.tokenImage,
|
|
26067
26067
|
amountConfiguration = _useContext2.amount;
|
|
26068
26068
|
var _useContext3 = React.useContext(PaymentValueContext),
|
|
26069
|
-
paymentValue = _useContext3.paymentValue
|
|
26069
|
+
paymentValue = _useContext3.paymentValue,
|
|
26070
|
+
displayedPaymentValue = _useContext3.displayedPaymentValue;
|
|
26070
26071
|
var _useContext4 = React.useContext(PaymentContext),
|
|
26071
26072
|
payment = _useContext4.payment,
|
|
26072
26073
|
paymentState = _useContext4.paymentState;
|
|
@@ -26119,12 +26120,15 @@
|
|
|
26119
26120
|
body: /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26120
26121
|
className: "PaddingLeftM PaddingRightM PaddingBottomXS"
|
|
26121
26122
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26122
|
-
className: ["Card", paymentState == 'initialized' ? '' : 'disabled'].join(' '),
|
|
26123
|
+
className: ["Card", paymentState == 'initialized' && (!amountConfiguration || !amountConfiguration.fix) ? '' : 'disabled'].join(' '),
|
|
26123
26124
|
title: paymentState == 'initialized' ? "Change amount" : undefined,
|
|
26124
26125
|
onClick: function onClick() {
|
|
26125
26126
|
if (paymentState != 'initialized') {
|
|
26126
26127
|
return;
|
|
26127
26128
|
}
|
|
26129
|
+
if (amountConfiguration && amountConfiguration.fix) {
|
|
26130
|
+
return;
|
|
26131
|
+
}
|
|
26128
26132
|
navigate('ChangeAmount');
|
|
26129
26133
|
}
|
|
26130
26134
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -26153,7 +26157,7 @@
|
|
|
26153
26157
|
className: "CardText small"
|
|
26154
26158
|
}, /*#__PURE__*/React__default["default"].createElement("small", null, salePerTokenValue, " per token")))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26155
26159
|
className: "CardAction"
|
|
26156
|
-
}, /*#__PURE__*/React__default["default"].createElement(ChevronRight, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26160
|
+
}, (!amountConfiguration || !amountConfiguration.fix) && /*#__PURE__*/React__default["default"].createElement(ChevronRight, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26157
26161
|
className: ["Card", paymentState == 'initialized' ? '' : 'disabled'].join(' '),
|
|
26158
26162
|
title: paymentState == 'initialized' ? "Change payment" : undefined,
|
|
26159
26163
|
onClick: function onClick() {
|
|
@@ -26182,7 +26186,11 @@
|
|
|
26182
26186
|
className: "TokenSymbolCell"
|
|
26183
26187
|
}, payment.symbol), /*#__PURE__*/React__default["default"].createElement("span", null, "\xA0"), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
26184
26188
|
className: "TokenAmountCell"
|
|
26185
|
-
}, format(payment.amount)))
|
|
26189
|
+
}, format(payment.amount))), amountConfiguration && amountConfiguration.fix && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26190
|
+
className: "TokenAmountRow small grey"
|
|
26191
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
26192
|
+
className: "TokenAmountCell"
|
|
26193
|
+
}, displayedPaymentValue))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26186
26194
|
className: "CardAction"
|
|
26187
26195
|
}, /*#__PURE__*/React__default["default"].createElement(ChevronRight, null)))),
|
|
26188
26196
|
footer: /*#__PURE__*/React__default["default"].createElement("div", {
|