Skip to content

Commit 6521657

Browse files
build(deps): update @joinmarket-webui/joinmarket-api-ts to v0.2.0
1 parent af04f26 commit 6521657

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

package-lock.json

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

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"*.{json,css,md}": "prettier --write"
3939
},
4040
"dependencies": {
41-
"@joinmarket-webui/joinmarket-api-ts": "0.1.0",
41+
"@joinmarket-webui/joinmarket-api-ts": "0.2.0",
4242
"@noble/hashes": "1.8.0",
4343
"@radix-ui/react-accordion": "1.2.12",
4444
"@radix-ui/react-avatar": "1.1.10",
@@ -99,6 +99,9 @@
9999
"vitest": "3.2.4"
100100
},
101101
"overrides": {
102-
"storybook": "$storybook"
102+
"storybook": "$storybook",
103+
"@joinmarket-webui/joinmarket-api-ts": {
104+
"@tanstack/react-query": "$@tanstack/react-query"
105+
}
103106
}
104107
}

src/components/layout/display-mode-context.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { createContext, useContext } from 'react'
22
import type { ReactNode } from 'react'
3+
import type { ErrorMessage } from '@joinmarket-webui/joinmarket-api-ts/jm'
34
import type { Currency } from '@/types/global'
45

56
export type JarColor = '#e2b86a' | '#3b5ba9' | '#c94f7c' | '#a67c52' | '#7c3fa6'
@@ -34,7 +35,7 @@ export interface DisplayModeContextType {
3435
totalBalance: number
3536
walletName: string | null
3637
isLoading: boolean
37-
error: Error | null
38+
error: Error | ErrorMessage | null
3839
refetchWalletData: () => void
3940
}
4041

src/hooks/useWalletDisplay.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useMemo } from 'react'
22
import { listutxosOptions } from '@joinmarket-webui/joinmarket-api-ts/@tanstack/react-query'
3+
import type { ErrorMessage } from '@joinmarket-webui/joinmarket-api-ts/jm'
34
import { useQuery } from '@tanstack/react-query'
45
import { useStore } from 'zustand'
56
import { jarTemplates } from '@/components/layout/display-mode-context'
@@ -15,7 +16,7 @@ export interface UseWalletDisplayResult {
1516
totalBalance: number
1617
walletName: string | null
1718
isLoading: boolean
18-
error: Error | null
19+
error: Error | ErrorMessage | null
1920
refetchWalletData: () => void
2021
}
2122

0 commit comments

Comments
 (0)