@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
|
@@ -39,7 +39,7 @@ describe('Invoice factoring recurring borrow', () => {
|
|
|
39
39
|
|
|
40
40
|
cy.iframe().find('button').contains('ACCEPT TERMS').click()
|
|
41
41
|
cy.iframe().find('div').contains(`${receivedUSDC} USDC`).should('exist')
|
|
42
|
-
cy.iframe().find('button').contains('
|
|
42
|
+
cy.iframe().find('button').contains('APPROVE TRANSFER').click()
|
|
43
43
|
|
|
44
44
|
// wait 2 minutes for transaction to be successful
|
|
45
45
|
cy.iframe()
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -3537,7 +3537,7 @@ function ConfirmTransfer$1() {
|
|
|
3537
3537
|
leftText: "".concat(borrowAmountNet, " ").concat(approval === null || approval === void 0 ? void 0 : approval.token.symbol),
|
|
3538
3538
|
rightText: 'You'
|
|
3539
3539
|
}],
|
|
3540
|
-
actionText: "
|
|
3540
|
+
actionText: "APPROVE TRANSFER",
|
|
3541
3541
|
handleAction: handleAction
|
|
3542
3542
|
});
|
|
3543
3543
|
}
|
|
@@ -4379,7 +4379,12 @@ var columns = [{
|
|
|
4379
4379
|
noSeparator: true
|
|
4380
4380
|
}, {
|
|
4381
4381
|
title: 'Amount',
|
|
4382
|
-
|
|
4382
|
+
action: function action(record) {
|
|
4383
|
+
if (shared.isEmpty(record.amount) || Number.isNaN(record.amount)) {
|
|
4384
|
+
return '';
|
|
4385
|
+
}
|
|
4386
|
+
return Number(record.amount).toFixed(2);
|
|
4387
|
+
}
|
|
4383
4388
|
}, {
|
|
4384
4389
|
title: 'Date',
|
|
4385
4390
|
dataIndex: 'timestamp'
|
|
@@ -4594,7 +4599,7 @@ function ConfirmTransfer() {
|
|
|
4594
4599
|
leftText: "".concat(borrowAmount.toFixed(2), " ").concat(approval === null || approval === void 0 ? void 0 : approval.token.symbol),
|
|
4595
4600
|
rightText: 'You'
|
|
4596
4601
|
}],
|
|
4597
|
-
actionText: "
|
|
4602
|
+
actionText: "APPROVE TRANSFER",
|
|
4598
4603
|
handleAction: handleAction
|
|
4599
4604
|
});
|
|
4600
4605
|
}
|