From 20158187b61512410800cbcf6289dc381c84dff5 Mon Sep 17 00:00:00 2001 From: Shiv Bhonde Date: Wed, 21 Feb 2024 12:55:34 +0530 Subject: [PATCH] minro tweaks to styles --- .../components/scaffold-eth/Contract/ContractInput.tsx | 8 ++++---- .../nextjs/components/scaffold-eth/Contract/Tuple.tsx | 4 ++-- .../components/scaffold-eth/Contract/TupleArray.tsx | 6 +++--- .../scaffold-eth/Contract/WriteOnlyFunctionForm.tsx | 10 +++++----- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/nextjs/components/scaffold-eth/Contract/ContractInput.tsx b/packages/nextjs/components/scaffold-eth/Contract/ContractInput.tsx index efb6c90b..95f77768 100644 --- a/packages/nextjs/components/scaffold-eth/Contract/ContractInput.tsx +++ b/packages/nextjs/components/scaffold-eth/Contract/ContractInput.tsx @@ -71,10 +71,10 @@ export const ContractInput = ({ setForm, form, stateObjectKey, paramType }: Cont }; return ( -
-
- {paramType.name && {paramType.name}} - {paramType.type} +
+
+ {paramType.name && {paramType.name}} + {paramType.type}
{renderInput()}
diff --git a/packages/nextjs/components/scaffold-eth/Contract/Tuple.tsx b/packages/nextjs/components/scaffold-eth/Contract/Tuple.tsx index 0e3175db..6000d262 100644 --- a/packages/nextjs/components/scaffold-eth/Contract/Tuple.tsx +++ b/packages/nextjs/components/scaffold-eth/Contract/Tuple.tsx @@ -27,9 +27,9 @@ export const Tuple = ({ abiTupleParameter, setParentForm, parentStateObjectKey } return (
-
+
-
+

{abiTupleParameter.internalType}

diff --git a/packages/nextjs/components/scaffold-eth/Contract/TupleArray.tsx b/packages/nextjs/components/scaffold-eth/Contract/TupleArray.tsx index 1eb23c25..01f30322 100644 --- a/packages/nextjs/components/scaffold-eth/Contract/TupleArray.tsx +++ b/packages/nextjs/components/scaffold-eth/Contract/TupleArray.tsx @@ -97,15 +97,15 @@ export const TupleArray = ({ abiTupleParameter, setParentForm, parentStateObject return (
-
+
-
+

{abiTupleParameter.internalType}

{additionalInputs.map((additionalInput, additionalIndex) => (
- + {depth > 1 ? `${additionalIndex}` : `tuple[${additionalIndex}]`}
diff --git a/packages/nextjs/components/scaffold-eth/Contract/WriteOnlyFunctionForm.tsx b/packages/nextjs/components/scaffold-eth/Contract/WriteOnlyFunctionForm.tsx index 81f4b4cd..6311c642 100644 --- a/packages/nextjs/components/scaffold-eth/Contract/WriteOnlyFunctionForm.tsx +++ b/packages/nextjs/components/scaffold-eth/Contract/WriteOnlyFunctionForm.tsx @@ -103,10 +103,10 @@ export const WriteOnlyFunctionForm = ({

{inputs} {abiFunction.stateMutability === "payable" ? ( -
-
- value - (wei) +
+
+ payable value + wei
) : null}