Skip to content

Commit 005e558

Browse files
authored
Merge branch 'main' into 162-add-the-rejected-status-to-the-invoice-dashboard
2 parents ca68be7 + 18f9e2c commit 005e558

File tree

6 files changed

+15
-25
lines changed

6 files changed

+15
-25
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/create-invoice-form/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@requestnetwork/create-invoice-form",
3-
"version": "0.10.0",
3+
"version": "0.11.0",
44
"main": "./dist/web-component.umd.cjs",
55
"scripts": {
66
"dev": "vite dev",
@@ -37,7 +37,7 @@
3737
"@requestnetwork/request-client.js": "0.50.0",
3838
"@wagmi/core": "^2.13.8",
3939
"validator": "^13.12.0",
40-
"viem": "^2.9.15"
40+
"viem": "^2.21.27"
4141
},
4242
"devDependencies": {
4343
"@sveltejs/vite-plugin-svelte": "^2.5.2",

packages/create-invoice-form/src/lib/react/CreateInvoiceForm.d.ts

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
import React from "react";
22
import { Config as WagmiConfig } from "@wagmi/core";
33
import 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

67
export 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
*/
4431
declare const CreateInvoiceForm: React.FC<CreateInvoiceFormProps>;

packages/invoice-dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@requestnetwork/invoice-dashboard",
3-
"version": "0.9.0",
3+
"version": "0.10.0",
44
"main": "./dist/web-component.umd.cjs",
55
"scripts": {
66
"dev": "vite dev",

packages/invoice-dashboard/src/lib/dashboard/drawer.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@
5050
left: 50%;
5151
height: fit-content;
5252
width: 800px;
53-
53+
max-height: 90vh;
54+
overflow-y: auto;
55+
overflow-x: hidden;
5456
transform: translateX(0);
57+
padding-right: 20px;
5558
}
5659
5760
@media only screen and (max-width: 880px) {

packages/invoice-dashboard/src/lib/react/InvoiceDashboard.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)