From d4d05f25e2b950fec2d928feea9f3cba830d1532 Mon Sep 17 00:00:00 2001 From: Rinat Date: Wed, 20 Nov 2024 17:44:35 +0100 Subject: [PATCH 1/2] fix: form submitting --- .../nextjs/components/scaffold-eth/Address/AddressCopyIcon.tsx | 2 +- packages/nextjs/components/scaffold-eth/Balance.tsx | 1 + packages/nextjs/components/scaffold-eth/Input/EtherInput.tsx | 1 + packages/nextjs/components/scaffold-eth/Input/IntegerInput.tsx | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nextjs/components/scaffold-eth/Address/AddressCopyIcon.tsx b/packages/nextjs/components/scaffold-eth/Address/AddressCopyIcon.tsx index 48fbe1f0b..2632e642f 100644 --- a/packages/nextjs/components/scaffold-eth/Address/AddressCopyIcon.tsx +++ b/packages/nextjs/components/scaffold-eth/Address/AddressCopyIcon.tsx @@ -14,7 +14,7 @@ export const AddressCopyIcon = ({ className, address }: { className?: string; ad }, 800); }} > - diff --git a/packages/nextjs/components/scaffold-eth/Input/IntegerInput.tsx b/packages/nextjs/components/scaffold-eth/Input/IntegerInput.tsx index bccc94fac..973eafacd 100644 --- a/packages/nextjs/components/scaffold-eth/Input/IntegerInput.tsx +++ b/packages/nextjs/components/scaffold-eth/Input/IntegerInput.tsx @@ -51,6 +51,7 @@ export const IntegerInput = ({ className={`${disabled ? "cursor-not-allowed" : "cursor-pointer"} font-semibold px-4 text-accent`} onClick={multiplyBy1e18} disabled={disabled} + type="button" > ∗ From fd3fa3e024e2e678c43dc3dd07d01b17f88e2321 Mon Sep 17 00:00:00 2001 From: Shiv Bhonde Date: Thu, 21 Nov 2024 15:18:14 +0530 Subject: [PATCH 2/2] convert Bytes32 and BytesInput suffix to button --- .../nextjs/components/scaffold-eth/Input/Bytes32Input.tsx | 5 +++-- packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/nextjs/components/scaffold-eth/Input/Bytes32Input.tsx b/packages/nextjs/components/scaffold-eth/Input/Bytes32Input.tsx index f8098be12..7feb2adb8 100644 --- a/packages/nextjs/components/scaffold-eth/Input/Bytes32Input.tsx +++ b/packages/nextjs/components/scaffold-eth/Input/Bytes32Input.tsx @@ -18,12 +18,13 @@ export const Bytes32Input = ({ value, onChange, name, placeholder, disabled }: C onChange={onChange} disabled={disabled} suffix={ -
# -
+ } /> ); diff --git a/packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx b/packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx index 695e65050..f2f9b4cb1 100644 --- a/packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx +++ b/packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx @@ -15,12 +15,13 @@ export const BytesInput = ({ value, onChange, name, placeholder, disabled }: Com onChange={onChange} disabled={disabled} suffix={ -
# -
+ } /> );