@huma-finance/widgets 0.0.48-beta.290 → 0.0.48-beta.292

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.
@@ -2636,7 +2636,7 @@ function Success$c(_ref) {
2636
2636
  symbol
2637
2637
  } = poolUnderlyingToken;
2638
2638
  const dueDate = shared.timeUtil.timestampToLL(creditRecord === null || creditRecord === void 0 ? void 0 : creditRecord.dueDate.toNumber());
2639
- const content = ["".concat(borrowAmountNet, " ").concat(symbol, " is now in your wallet."), "Note: your payment will be automatically deducted on ".concat(dueDate, ".")];
2639
+ const content = ["".concat(shared.formatNumber(borrowAmountNet), " ").concat(symbol, " is now in your wallet."), "Note: your payment will be automatically deducted on ".concat(dueDate, ".")];
2640
2640
  return jsxRuntime.jsx(TxDoneModal, {
2641
2641
  handleAction: handleAction,
2642
2642
  content: content,
@@ -3204,7 +3204,7 @@ function Success$b(_ref) {
3204
3204
  symbol
3205
3205
  } = poolUnderlyingToken;
3206
3206
  const dueDate = shared.timeUtil.timestampToLL(creditRecord === null || creditRecord === void 0 ? void 0 : creditRecord.nextDueDate.toNumber());
3207
- const content = ["".concat(borrowAmountNet, " ").concat(symbol, " is now in your wallet."), "Note: your payment will be automatically deducted on ".concat(dueDate, ".")];
3207
+ const content = ["".concat(shared.formatNumber(borrowAmountNet), " ").concat(symbol, " is now in your wallet."), "Note: your payment will be automatically deducted on ".concat(dueDate, ".")];
3208
3208
  return jsxRuntime.jsx(TxDoneModal, {
3209
3209
  handleAction: handleAction,
3210
3210
  content: content,
@@ -3424,7 +3424,7 @@ function Success$a(_ref) {
3424
3424
  }
3425
3425
  }
3426
3426
  }, [decimals, txReceipt]);
3427
- const content = ["You successfully paid ".concat(shared.formatMoney(payedAmount), " ").concat(symbol, ".")];
3427
+ const content = ["You successfully paid ".concat(shared.formatNumber(payedAmount), " ").concat(symbol, ".")];
3428
3428
  return jsxRuntime.jsx(TxDoneModal, {
3429
3429
  handleAction: handleAction,
3430
3430
  content: content
@@ -3627,7 +3627,7 @@ function Success$9(_ref) {
3627
3627
  }
3628
3628
  }
3629
3629
  }, [decimals, txReceipt]);
3630
- const content = ["You successfully paid ".concat(shared.formatMoney(paidAmount), " ").concat(symbol, ".")];
3630
+ const content = ["You successfully paid ".concat(shared.formatNumber(paidAmount), " ").concat(symbol, ".")];
3631
3631
  return jsxRuntime.jsx(TxDoneModal, {
3632
3632
  handleAction: handleAction,
3633
3633
  content: content
@@ -4108,7 +4108,7 @@ function Success$7(_ref) {
4108
4108
  remainder,
4109
4109
  approval
4110
4110
  } = useAppSelector(selectWidgetState);
4111
- const content = ["".concat(borrowAmountNet, " ").concat(approval === null || approval === void 0 ? void 0 : approval.token.symbol, " is now in your wallet."), "The remaining ".concat(remainder, " ").concat(approval === null || approval === void 0 ? void 0 : approval.token.symbol, " will be sent to your wallet when the invoice is paid.")];
4111
+ const content = ["".concat(shared.formatNumber(borrowAmountNet), " ").concat(approval === null || approval === void 0 ? void 0 : approval.token.symbol, " is now in your wallet."), "The remaining ".concat(remainder, " ").concat(approval === null || approval === void 0 ? void 0 : approval.token.symbol, " will be sent to your wallet when the invoice is paid.")];
4112
4112
  return jsxRuntime.jsx(TxDoneModal, {
4113
4113
  handleAction: handleAction,
4114
4114
  content: content
@@ -6467,7 +6467,7 @@ function Success$2(_ref) {
6467
6467
  symbol
6468
6468
  } = poolUnderlyingToken;
6469
6469
  const dueDate = shared.timeUtil.timestampToLL(creditRecord === null || creditRecord === void 0 ? void 0 : creditRecord.nextDueDate.toNumber());
6470
- const content = ["".concat(borrowAmountNet, " ").concat(symbol, " is now in your wallet."), "Note: your payment will be automatically deducted on ".concat(dueDate, ".")];
6470
+ const content = ["".concat(shared.formatNumber(borrowAmountNet), " ").concat(symbol, " is now in your wallet."), "Note: your payment will be automatically deducted on ".concat(dueDate, ".")];
6471
6471
  return jsxRuntime.jsx(TxDoneModal, {
6472
6472
  handleAction: handleAction,
6473
6473
  content: content,
@@ -7129,7 +7129,7 @@ function Success$1(_ref) {
7129
7129
  borrowAmount,
7130
7130
  approval
7131
7131
  } = useAppSelector(selectWidgetState);
7132
- const content = ["".concat(borrowAmount === null || borrowAmount === void 0 ? void 0 : borrowAmount.toFixed(2), " ").concat(approval === null || approval === void 0 ? void 0 : approval.token.symbol, " is now in your wallet.")];
7132
+ const content = ["".concat(shared.formatNumber(borrowAmount), " ").concat(approval === null || approval === void 0 ? void 0 : approval.token.symbol, " is now in your wallet.")];
7133
7133
  return jsxRuntime.jsx(TxDoneModal, {
7134
7134
  handleAction: handleAction,
7135
7135
  content: content
@@ -8281,8 +8281,8 @@ function Success(_ref) {
8281
8281
  }
8282
8282
  }
8283
8283
  }, [decimals, successTxReceipt]);
8284
- const amoutFormatted = shared.formatMoney(paidAmount);
8285
- const content = paymentType === PaymentType.PaymentWithReceivable ? ["You successfully paid ".concat(amoutFormatted, " ").concat(symbol, ".")] : ["You successfully paid ".concat(amoutFormatted, " ").concat(symbol, " and borrowed ").concat(amoutFormatted, " ").concat(symbol, ".")];
8284
+ const amountFormatted = shared.formatNumber(paidAmount);
8285
+ const content = paymentType === PaymentType.PaymentWithReceivable ? ["You successfully paid ".concat(amountFormatted, " ").concat(symbol, ".")] : ["You successfully paid ".concat(amountFormatted, " ").concat(symbol, " and borrowed ").concat(amountFormatted, " ").concat(symbol, ".")];
8286
8286
  return jsxRuntime.jsx(TxDoneModal, {
8287
8287
  handleAction: handleAction,
8288
8288
  content: content