@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/esm/index.evm.js
CHANGED
|
@@ -26070,7 +26070,8 @@ var SaleOverviewDialog = (function (props) {
|
|
|
26070
26070
|
tokenImage = _useContext2.tokenImage,
|
|
26071
26071
|
amountConfiguration = _useContext2.amount;
|
|
26072
26072
|
var _useContext3 = useContext(PaymentValueContext),
|
|
26073
|
-
paymentValue = _useContext3.paymentValue
|
|
26073
|
+
paymentValue = _useContext3.paymentValue,
|
|
26074
|
+
displayedPaymentValue = _useContext3.displayedPaymentValue;
|
|
26074
26075
|
var _useContext4 = useContext(PaymentContext),
|
|
26075
26076
|
payment = _useContext4.payment,
|
|
26076
26077
|
paymentState = _useContext4.paymentState;
|
|
@@ -26123,12 +26124,15 @@ var SaleOverviewDialog = (function (props) {
|
|
|
26123
26124
|
body: /*#__PURE__*/React.createElement("div", {
|
|
26124
26125
|
className: "PaddingLeftM PaddingRightM PaddingBottomXS"
|
|
26125
26126
|
}, /*#__PURE__*/React.createElement("div", {
|
|
26126
|
-
className: ["Card", paymentState == 'initialized' ? '' : 'disabled'].join(' '),
|
|
26127
|
+
className: ["Card", paymentState == 'initialized' && (!amountConfiguration || !amountConfiguration.fix) ? '' : 'disabled'].join(' '),
|
|
26127
26128
|
title: paymentState == 'initialized' ? "Change amount" : undefined,
|
|
26128
26129
|
onClick: function onClick() {
|
|
26129
26130
|
if (paymentState != 'initialized') {
|
|
26130
26131
|
return;
|
|
26131
26132
|
}
|
|
26133
|
+
if (amountConfiguration && amountConfiguration.fix) {
|
|
26134
|
+
return;
|
|
26135
|
+
}
|
|
26132
26136
|
navigate('ChangeAmount');
|
|
26133
26137
|
}
|
|
26134
26138
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -26157,7 +26161,7 @@ var SaleOverviewDialog = (function (props) {
|
|
|
26157
26161
|
className: "CardText small"
|
|
26158
26162
|
}, /*#__PURE__*/React.createElement("small", null, salePerTokenValue, " per token")))), /*#__PURE__*/React.createElement("div", {
|
|
26159
26163
|
className: "CardAction"
|
|
26160
|
-
}, /*#__PURE__*/React.createElement(ChevronRight, null))), /*#__PURE__*/React.createElement("div", {
|
|
26164
|
+
}, (!amountConfiguration || !amountConfiguration.fix) && /*#__PURE__*/React.createElement(ChevronRight, null))), /*#__PURE__*/React.createElement("div", {
|
|
26161
26165
|
className: ["Card", paymentState == 'initialized' ? '' : 'disabled'].join(' '),
|
|
26162
26166
|
title: paymentState == 'initialized' ? "Change payment" : undefined,
|
|
26163
26167
|
onClick: function onClick() {
|
|
@@ -26186,7 +26190,11 @@ var SaleOverviewDialog = (function (props) {
|
|
|
26186
26190
|
className: "TokenSymbolCell"
|
|
26187
26191
|
}, payment.symbol), /*#__PURE__*/React.createElement("span", null, "\xA0"), /*#__PURE__*/React.createElement("span", {
|
|
26188
26192
|
className: "TokenAmountCell"
|
|
26189
|
-
}, format(payment.amount)))
|
|
26193
|
+
}, format(payment.amount))), amountConfiguration && amountConfiguration.fix && /*#__PURE__*/React.createElement("div", {
|
|
26194
|
+
className: "TokenAmountRow small grey"
|
|
26195
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
26196
|
+
className: "TokenAmountCell"
|
|
26197
|
+
}, displayedPaymentValue))))), /*#__PURE__*/React.createElement("div", {
|
|
26190
26198
|
className: "CardAction"
|
|
26191
26199
|
}, /*#__PURE__*/React.createElement(ChevronRight, null)))),
|
|
26192
26200
|
footer: /*#__PURE__*/React.createElement("div", {
|