From ce5d6e8128d68d87bf3fa1a1783454a98ac9db7a Mon Sep 17 00:00:00 2001 From: port <108868128+portdeveloper@users.noreply.github.com> Date: Tue, 12 Mar 2024 20:34:44 +0300 Subject: [PATCH] Better placement of go back button and input --- packages/nextjs/pages/index.tsx | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/packages/nextjs/pages/index.tsx b/packages/nextjs/pages/index.tsx index 24584ad6..52c205be 100644 --- a/packages/nextjs/pages/index.tsx +++ b/packages/nextjs/pages/index.tsx @@ -154,11 +154,23 @@ const Home: NextPage = () => { logo

ABI Ninja

Interact with any contract on Ethereum

-
+
setNetwork(option ? option.value.toString() : "")} />
- -
+ {activeTab === TabName.addressAbi && ( +
{ + setActiveTab(TabName.verifiedContract); + setVerifiedContractAddress(""); + }} + > + ← go back +
+ )} + {/* placeholder to match height @todo make this better, bad practice! */} + {activeTab === TabName.verifiedContract &&
} +
{tabValues.map(tabValue => (
{ ) : (
{/* Tab navigation */} -
{ )}
- {activeTab === TabName.addressAbi && ( -
{ - setActiveTab(TabName.verifiedContract); - setVerifiedContractAddress(""); - }} - > - ← go back -
- )} -