@trustless-work/blocks 1.0.7 → 1.0.8
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
|
@@ -322,7 +322,7 @@ export const UpdateEscrowForm = () => {
|
|
|
322
322
|
/>
|
|
323
323
|
</div>
|
|
324
324
|
|
|
325
|
-
<div className="grid grid-cols-1
|
|
325
|
+
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
|
326
326
|
<FormField
|
|
327
327
|
control={form.control}
|
|
328
328
|
name="platformFee"
|
|
@@ -378,30 +378,6 @@ export const UpdateEscrowForm = () => {
|
|
|
378
378
|
</FormItem>
|
|
379
379
|
)}
|
|
380
380
|
/>
|
|
381
|
-
|
|
382
|
-
<FormField
|
|
383
|
-
control={form.control}
|
|
384
|
-
name="receiverMemo"
|
|
385
|
-
render={({ field }) => (
|
|
386
|
-
<FormItem>
|
|
387
|
-
<FormLabel className="flex items-center">
|
|
388
|
-
Receiver Memo (opcional)
|
|
389
|
-
</FormLabel>
|
|
390
|
-
<FormControl>
|
|
391
|
-
<Input
|
|
392
|
-
type="text"
|
|
393
|
-
placeholder="Enter the escrow receiver Memo"
|
|
394
|
-
{...field}
|
|
395
|
-
disabled={isEscrowLocked}
|
|
396
|
-
onChange={(e) => {
|
|
397
|
-
field.onChange(e);
|
|
398
|
-
}}
|
|
399
|
-
/>
|
|
400
|
-
</FormControl>
|
|
401
|
-
<FormMessage />
|
|
402
|
-
</FormItem>
|
|
403
|
-
)}
|
|
404
|
-
/>
|
|
405
381
|
</div>
|
|
406
382
|
|
|
407
383
|
<FormField
|
|
@@ -79,16 +79,6 @@ export const useUpdateEscrowSchema = () => {
|
|
|
79
79
|
},
|
|
80
80
|
{ message: "Platform fee can have a maximum of 2 decimal places." }
|
|
81
81
|
),
|
|
82
|
-
receiverMemo: z
|
|
83
|
-
.string()
|
|
84
|
-
.optional()
|
|
85
|
-
.refine((val) => !val || val.length >= 1, {
|
|
86
|
-
message: "Receiver Memo must be at least 1.",
|
|
87
|
-
})
|
|
88
|
-
.refine((val) => !val || /^[1-9][0-9]*$/.test(val), {
|
|
89
|
-
message:
|
|
90
|
-
"Receiver Memo must be a whole number greater than 0 (no decimals).",
|
|
91
|
-
}),
|
|
92
82
|
});
|
|
93
83
|
};
|
|
94
84
|
|