Skip to content

Commit 124fc24

Browse files
committed
fix: add missing param to useClaimsTransaction hook, upgrade dependencies
1 parent 3585297 commit 124fc24

File tree

3 files changed

+225
-196
lines changed

3 files changed

+225
-196
lines changed

app/react-library/use-claims-transaction/page.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,29 @@ function App() {
115115
}
116116
```
117117

118+
#### address
119+
120+
`Address | undefined`
121+
122+
The account address eligible to receive the claims (the receiver). The
123+
`useClaims` hook won’t run until an `address` is provided.
124+
125+
```tsx
126+
import { useClaimsTransaction, useClaims } from "@metrom-xyz/react";
127+
128+
function App() {
129+
const { data: claims } = useClaims({
130+
address: "0x0000000000000000000000000000000000000000",
131+
});
132+
133+
const { isLoading, data } = useClaimsTransaction({
134+
chainId: 1,
135+
claims,
136+
address: "0x0000000000000000000000000000000000000000",
137+
});
138+
}
139+
```
140+
118141
<QueryOptions />
119142

120143
### Return Type

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
"dependencies": {
1818
"@fontsource/ibm-plex-mono": "^5.2.6",
1919
"@fontsource/ibm-plex-sans": "^5.2.6",
20-
"@metrom-xyz/ui": "^0.11.4",
20+
"@metrom-xyz/ui": "^0.11.5",
2121
"next": "^15.3.4",
2222
"nextra": "^4.2.17",
2323
"nextra-theme-docs": "^4.2.17",
24-
"react": "^19.1.0",
25-
"react-dom": "^19.1.0"
24+
"react": "^19.1.1",
25+
"react-dom": "^19.1.1"
2626
},
2727
"devDependencies": {
2828
"@changesets/cli": "^2.29.5",

0 commit comments

Comments
 (0)