@depay/widgets 7.15.1 → 7.15.2

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/esm/index.js CHANGED
@@ -20922,19 +20922,22 @@ var Footer = (function () {
20922
20922
  });
20923
20923
 
20924
20924
  var DonationOverviewDialog = (function (props) {
20925
- var _useContext = useContext(ConfigurationContext),
20926
- currencyCode = _useContext.currencyCode,
20927
- title = _useContext.title;
20925
+ var _useContext = useContext(ConfigurationContext);
20926
+ _useContext.currencyCode;
20927
+ var title = _useContext.title;
20928
20928
 
20929
- var _useContext2 = useContext(ChangableAmountContext),
20930
- amount = _useContext2.amount;
20929
+ var _useContext2 = useContext(ChangableAmountContext);
20930
+ _useContext2.amount;
20931
20931
 
20932
20932
  var _useContext3 = useContext(PaymentContext),
20933
20933
  payment = _useContext3.payment,
20934
20934
  paymentState = _useContext3.paymentState;
20935
20935
 
20936
- var _useContext4 = useContext(NavigateStackContext),
20937
- navigate = _useContext4.navigate;
20936
+ var _useContext4 = useContext(PaymentValueContext),
20937
+ displayedPaymentValue = _useContext4.displayedPaymentValue;
20938
+
20939
+ var _useContext5 = useContext(NavigateStackContext),
20940
+ navigate = _useContext5.navigate;
20938
20941
 
20939
20942
  if (payment == undefined) {
20940
20943
  return /*#__PURE__*/React.createElement(DonationOverviewSkeleton, null);
@@ -20969,10 +20972,7 @@ var DonationOverviewDialog = (function (props) {
20969
20972
  className: "CardText"
20970
20973
  }, /*#__PURE__*/React.createElement("div", {
20971
20974
  className: "TokenAmountRow"
20972
- }, new Currency({
20973
- amount: amount.toFixed(2),
20974
- code: currencyCode
20975
- }).toString())))), /*#__PURE__*/React.createElement("div", {
20975
+ }, displayedPaymentValue)))), /*#__PURE__*/React.createElement("div", {
20976
20976
  className: "CardAction"
20977
20977
  }, /*#__PURE__*/React.createElement(ChevronRight, null))), /*#__PURE__*/React.createElement("div", {
20978
20978
  className: ["Card", paymentState == 'initialized' ? '' : 'disabled'].join(' '),