@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.
@@ -26111,7 +26111,8 @@ var SaleOverviewDialog = (function (props) {
26111
26111
  tokenImage = _useContext2.tokenImage,
26112
26112
  amountConfiguration = _useContext2.amount;
26113
26113
  var _useContext3 = useContext(PaymentValueContext),
26114
- paymentValue = _useContext3.paymentValue;
26114
+ paymentValue = _useContext3.paymentValue,
26115
+ displayedPaymentValue = _useContext3.displayedPaymentValue;
26115
26116
  var _useContext4 = useContext(PaymentContext),
26116
26117
  payment = _useContext4.payment,
26117
26118
  paymentState = _useContext4.paymentState;
@@ -26164,12 +26165,15 @@ var SaleOverviewDialog = (function (props) {
26164
26165
  body: /*#__PURE__*/React.createElement("div", {
26165
26166
  className: "PaddingLeftM PaddingRightM PaddingBottomXS"
26166
26167
  }, /*#__PURE__*/React.createElement("div", {
26167
- className: ["Card", paymentState == 'initialized' ? '' : 'disabled'].join(' '),
26168
+ className: ["Card", paymentState == 'initialized' && (!amountConfiguration || !amountConfiguration.fix) ? '' : 'disabled'].join(' '),
26168
26169
  title: paymentState == 'initialized' ? "Change amount" : undefined,
26169
26170
  onClick: function onClick() {
26170
26171
  if (paymentState != 'initialized') {
26171
26172
  return;
26172
26173
  }
26174
+ if (amountConfiguration && amountConfiguration.fix) {
26175
+ return;
26176
+ }
26173
26177
  navigate('ChangeAmount');
26174
26178
  }
26175
26179
  }, /*#__PURE__*/React.createElement("div", {
@@ -26198,7 +26202,7 @@ var SaleOverviewDialog = (function (props) {
26198
26202
  className: "CardText small"
26199
26203
  }, /*#__PURE__*/React.createElement("small", null, salePerTokenValue, " per token")))), /*#__PURE__*/React.createElement("div", {
26200
26204
  className: "CardAction"
26201
- }, /*#__PURE__*/React.createElement(ChevronRight, null))), /*#__PURE__*/React.createElement("div", {
26205
+ }, (!amountConfiguration || !amountConfiguration.fix) && /*#__PURE__*/React.createElement(ChevronRight, null))), /*#__PURE__*/React.createElement("div", {
26202
26206
  className: ["Card", paymentState == 'initialized' ? '' : 'disabled'].join(' '),
26203
26207
  title: paymentState == 'initialized' ? "Change payment" : undefined,
26204
26208
  onClick: function onClick() {
@@ -26227,7 +26231,11 @@ var SaleOverviewDialog = (function (props) {
26227
26231
  className: "TokenSymbolCell"
26228
26232
  }, payment.symbol), /*#__PURE__*/React.createElement("span", null, "\xA0"), /*#__PURE__*/React.createElement("span", {
26229
26233
  className: "TokenAmountCell"
26230
- }, format(payment.amount)))))), /*#__PURE__*/React.createElement("div", {
26234
+ }, format(payment.amount))), amountConfiguration && amountConfiguration.fix && /*#__PURE__*/React.createElement("div", {
26235
+ className: "TokenAmountRow small grey"
26236
+ }, /*#__PURE__*/React.createElement("span", {
26237
+ className: "TokenAmountCell"
26238
+ }, displayedPaymentValue))))), /*#__PURE__*/React.createElement("div", {
26231
26239
  className: "CardAction"
26232
26240
  }, /*#__PURE__*/React.createElement(ChevronRight, null)))),
26233
26241
  footer: /*#__PURE__*/React.createElement("div", {