@huma-shan/widgets
v0.3.4
Published
The `@humafinance/widgets` package is an [npm package](https://www.npmjs.com/package/@humafinance/widgets) of React components used to provide subsets of the Huma Finance Protocol functionality in a small user interface element for invoice factoring.
Downloads
1
Readme
Huma Widgets
The @humafinance/widgets
package is an npm package of React components used to provide subsets of the Huma Finance Protocol functionality in a small user interface element for invoice factoring.
Installation
Install the widgets library via npm
or yarn
.
yarn add @humafinance/widgets
npm i --save @humafinance/widgets
Invoice factoring borrow widget
import { InvoiceFactoringBorrowWidget } from '@humafinance/widgets'
export const InvoiceFactoringOneTimePage = () => {
return (
<InvoiceFactoringBorrowWidget
poolName='pool name'
tokenId={tokenId}
handleClose={handleClose}
/>
)
}
export const InvoiceFactoringRecurringPage = () => {
return (
<InvoiceFactoringBorrowWidget
poolName='pool name'
tokenId={tokenId}
shouldCallApproveForAll
handleClose={handleClose}
/>
)
}