@huma-finance/widgets 0.0.20 → 0.0.22
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/cypress/e2e/01-invoice-factoring-borrow.test.ts +1 -1
- package/dist/cjs/index.cjs +8 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/Activity.tsx +12 -3
- package/src/components/InvoiceFactoring/borrow/3-ConfirmTransfer.tsx +1 -1
- package/src/components/Lend/supply/4-ConfirmTransfer.tsx +1 -1
- package/src/components/StreamFactoring/borrow/3-ConfirmTransfer.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -3499,7 +3499,7 @@ function ConfirmTransfer$1() {
|
|
|
3499
3499
|
leftText: "".concat(borrowAmountNet, " ").concat(approval === null || approval === void 0 ? void 0 : approval.token.symbol),
|
|
3500
3500
|
rightText: 'You'
|
|
3501
3501
|
}],
|
|
3502
|
-
actionText: "
|
|
3502
|
+
actionText: "APPROVE TRANSFER",
|
|
3503
3503
|
handleAction: handleAction
|
|
3504
3504
|
});
|
|
3505
3505
|
}
|
|
@@ -4341,7 +4341,12 @@ var columns = [{
|
|
|
4341
4341
|
noSeparator: true
|
|
4342
4342
|
}, {
|
|
4343
4343
|
title: 'Amount',
|
|
4344
|
-
|
|
4344
|
+
action: function action(record) {
|
|
4345
|
+
if (isEmpty(record.amount) || Number.isNaN(record.amount)) {
|
|
4346
|
+
return '';
|
|
4347
|
+
}
|
|
4348
|
+
return Number(record.amount).toFixed(2);
|
|
4349
|
+
}
|
|
4345
4350
|
}, {
|
|
4346
4351
|
title: 'Date',
|
|
4347
4352
|
dataIndex: 'timestamp'
|
|
@@ -4556,7 +4561,7 @@ function ConfirmTransfer() {
|
|
|
4556
4561
|
leftText: "".concat(borrowAmount.toFixed(2), " ").concat(approval === null || approval === void 0 ? void 0 : approval.token.symbol),
|
|
4557
4562
|
rightText: 'You'
|
|
4558
4563
|
}],
|
|
4559
|
-
actionText: "
|
|
4564
|
+
actionText: "APPROVE TRANSFER",
|
|
4560
4565
|
handleAction: handleAction
|
|
4561
4566
|
});
|
|
4562
4567
|
}
|