@trustless-work/blocks 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -18,7 +18,9 @@ import {
|
|
|
18
18
|
} from "@/components/tw-blocks/handle-errors/handle";
|
|
19
19
|
import { GetEscrowsFromIndexerResponse } from "@trustless-work/escrow/types";
|
|
20
20
|
|
|
21
|
-
export function useUpdateEscrow({
|
|
21
|
+
export function useUpdateEscrow({
|
|
22
|
+
onSuccess,
|
|
23
|
+
}: { onSuccess?: () => void } = {}) {
|
|
22
24
|
const [isSubmitting, setIsSubmitting] = React.useState(false);
|
|
23
25
|
|
|
24
26
|
const { getMultiReleaseFormSchema } = useUpdateEscrowSchema();
|
|
@@ -45,6 +47,7 @@ export function useUpdateEscrow({ onSuccess }: { onSuccess?: () => void } = {})
|
|
|
45
47
|
| undefined,
|
|
46
48
|
trustline: {
|
|
47
49
|
address: selectedEscrow?.trustline?.address || "",
|
|
50
|
+
symbol: selectedEscrow?.trustline?.name || "",
|
|
48
51
|
},
|
|
49
52
|
roles: {
|
|
50
53
|
approver: selectedEscrow?.roles?.approver || "",
|
|
@@ -84,6 +87,7 @@ export function useUpdateEscrow({ onSuccess }: { onSuccess?: () => void } = {})
|
|
|
84
87
|
| undefined) || "",
|
|
85
88
|
trustline: {
|
|
86
89
|
address: selectedEscrow?.trustline?.address || "",
|
|
90
|
+
symbol: selectedEscrow?.trustline?.name || "",
|
|
87
91
|
},
|
|
88
92
|
roles: {
|
|
89
93
|
approver: selectedEscrow?.roles?.approver || "",
|
|
@@ -20,7 +20,9 @@ import {
|
|
|
20
20
|
handleError,
|
|
21
21
|
} from "@/components/tw-blocks/handle-errors/handle";
|
|
22
22
|
|
|
23
|
-
export function useUpdateEscrow({
|
|
23
|
+
export function useUpdateEscrow({
|
|
24
|
+
onSuccess,
|
|
25
|
+
}: { onSuccess?: () => void } = {}) {
|
|
24
26
|
const [isSubmitting, setIsSubmitting] = React.useState(false);
|
|
25
27
|
|
|
26
28
|
const { getSingleReleaseFormSchema } = useUpdateEscrowSchema();
|
|
@@ -48,6 +50,7 @@ export function useUpdateEscrow({ onSuccess }: { onSuccess?: () => void } = {})
|
|
|
48
50
|
amount: selectedEscrow?.amount as unknown as number | string | undefined,
|
|
49
51
|
trustline: {
|
|
50
52
|
address: selectedEscrow?.trustline?.address || "",
|
|
53
|
+
symbol: selectedEscrow?.trustline?.name || "",
|
|
51
54
|
},
|
|
52
55
|
roles: {
|
|
53
56
|
approver: selectedEscrow?.roles?.approver || "",
|
|
@@ -84,6 +87,7 @@ export function useUpdateEscrow({ onSuccess }: { onSuccess?: () => void } = {})
|
|
|
84
87
|
"",
|
|
85
88
|
trustline: {
|
|
86
89
|
address: selectedEscrow?.trustline?.address || "",
|
|
90
|
+
symbol: selectedEscrow?.trustline?.name || "",
|
|
87
91
|
},
|
|
88
92
|
roles: {
|
|
89
93
|
approver: selectedEscrow?.roles?.approver || "",
|