@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.js
CHANGED
|
@@ -26106,7 +26106,8 @@
|
|
|
26106
26106
|
tokenImage = _useContext2.tokenImage,
|
|
26107
26107
|
amountConfiguration = _useContext2.amount;
|
|
26108
26108
|
var _useContext3 = React.useContext(PaymentValueContext),
|
|
26109
|
-
paymentValue = _useContext3.paymentValue
|
|
26109
|
+
paymentValue = _useContext3.paymentValue,
|
|
26110
|
+
displayedPaymentValue = _useContext3.displayedPaymentValue;
|
|
26110
26111
|
var _useContext4 = React.useContext(PaymentContext),
|
|
26111
26112
|
payment = _useContext4.payment,
|
|
26112
26113
|
paymentState = _useContext4.paymentState;
|
|
@@ -26159,12 +26160,15 @@
|
|
|
26159
26160
|
body: /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26160
26161
|
className: "PaddingLeftM PaddingRightM PaddingBottomXS"
|
|
26161
26162
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26162
|
-
className: ["Card", paymentState == 'initialized' ? '' : 'disabled'].join(' '),
|
|
26163
|
+
className: ["Card", paymentState == 'initialized' && (!amountConfiguration || !amountConfiguration.fix) ? '' : 'disabled'].join(' '),
|
|
26163
26164
|
title: paymentState == 'initialized' ? "Change amount" : undefined,
|
|
26164
26165
|
onClick: function onClick() {
|
|
26165
26166
|
if (paymentState != 'initialized') {
|
|
26166
26167
|
return;
|
|
26167
26168
|
}
|
|
26169
|
+
if (amountConfiguration && amountConfiguration.fix) {
|
|
26170
|
+
return;
|
|
26171
|
+
}
|
|
26168
26172
|
navigate('ChangeAmount');
|
|
26169
26173
|
}
|
|
26170
26174
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -26193,7 +26197,7 @@
|
|
|
26193
26197
|
className: "CardText small"
|
|
26194
26198
|
}, /*#__PURE__*/React__default["default"].createElement("small", null, salePerTokenValue, " per token")))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26195
26199
|
className: "CardAction"
|
|
26196
|
-
}, /*#__PURE__*/React__default["default"].createElement(ChevronRight, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26200
|
+
}, (!amountConfiguration || !amountConfiguration.fix) && /*#__PURE__*/React__default["default"].createElement(ChevronRight, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26197
26201
|
className: ["Card", paymentState == 'initialized' ? '' : 'disabled'].join(' '),
|
|
26198
26202
|
title: paymentState == 'initialized' ? "Change payment" : undefined,
|
|
26199
26203
|
onClick: function onClick() {
|
|
@@ -26222,7 +26226,11 @@
|
|
|
26222
26226
|
className: "TokenSymbolCell"
|
|
26223
26227
|
}, payment.symbol), /*#__PURE__*/React__default["default"].createElement("span", null, "\xA0"), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
26224
26228
|
className: "TokenAmountCell"
|
|
26225
|
-
}, format(payment.amount)))
|
|
26229
|
+
}, format(payment.amount))), amountConfiguration && amountConfiguration.fix && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26230
|
+
className: "TokenAmountRow small grey"
|
|
26231
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
26232
|
+
className: "TokenAmountCell"
|
|
26233
|
+
}, displayedPaymentValue))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26226
26234
|
className: "CardAction"
|
|
26227
26235
|
}, /*#__PURE__*/React__default["default"].createElement(ChevronRight, null)))),
|
|
26228
26236
|
footer: /*#__PURE__*/React__default["default"].createElement("div", {
|