File tree Expand file tree Collapse file tree 2 files changed +5
-18
lines changed
create-invoice-form/src/lib/react
invoice-dashboard/src/lib/react Expand file tree Collapse file tree 2 files changed +5
-18
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
22import { Config as WagmiConfig } from "@wagmi/core" ;
33import type { IConfig } from "@requestnetwork/shared-types" ;
4- import type { RequestNetwork , Types } from "@requestnetwork/request-client.js" ;
4+ import type { RequestNetwork } from "@requestnetwork/request-client.js" ;
5+ import type { CurrencyTypes } from "@requestnetwork/types" ;
56
67export interface CreateInvoiceFormProps {
78 config : IConfig ;
89 wagmiConfig : WagmiConfig ;
910 requestNetwork : RequestNetwork | null | undefined ;
10- currencies : {
11- symbol : string ;
12- address : string ;
13- network : string ;
14- decimals : number ;
15- type : Types . RequestLogic . CURRENCY ;
16- } [ ] ;
11+ currencies : CurrencyTypes . CurrencyInput [ ] ;
1712}
1813
1914/**
@@ -30,15 +25,7 @@ export interface CreateInvoiceFormProps {
3025 * config={config}
3126 * wagmiConfig={wagmiConfig}
3227 * requestNetwork={requestNetwork}
33- * currencies={[
34- * {
35- * symbol: "USDC",
36- * address: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
37- * network: "sepolia",
38- * decimals: 6,
39- * type: Types.RequestLogic.CURRENCY.ERC20,
40- * },
41- * ]}
28+ * currencies={currencies}
4229 * />
4330 */
4431declare const CreateInvoiceForm : React . FC < CreateInvoiceFormProps > ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export interface InvoiceDashboardProps {
88 config : IConfig ;
99 wagmiConfig : WagmiConfig ;
1010 requestNetwork : RequestNetwork | null | undefined ;
11- currencies : CurrencyTypes . CurrencyDefinition [ ] ;
11+ currencies : CurrencyTypes . CurrencyInput [ ] ;
1212}
1313/**
1414 * InvoiceDashboard is a React component that integrates with the Request Network to manage and display invoices.
You can’t perform that action at this time.
0 commit comments