@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustless-work/blocks",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "author": "Trustless Work",
5
5
  "keywords": [
6
6
  "react",
@@ -240,7 +240,7 @@ export const UpdateEscrowForm = () => {
240
240
  />
241
241
  </div>
242
242
 
243
- <div className="grid grid-cols-1 gap-4">
243
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
244
244
  <FormField
245
245
  control={form.control}
246
246
  name="roles.releaseSigner"
@@ -322,7 +322,7 @@ export const UpdateEscrowForm = () => {
322
322
  />
323
323
  </div>
324
324
 
325
- <div className="grid grid-cols-1 lg:grid-cols-3 gap-4">
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