From 4aa8eed373eafbf3f54626379df664b1b8bd73f2 Mon Sep 17 00:00:00 2001 From: Ashleen Date: Wed, 28 Aug 2024 16:29:47 +0100 Subject: [PATCH] add tooltip to declare button --- plugin/src/features/Deployment/index.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugin/src/features/Deployment/index.tsx b/plugin/src/features/Deployment/index.tsx index 919c24d1..f24f83d1 100644 --- a/plugin/src/features/Deployment/index.tsx +++ b/plugin/src/features/Deployment/index.tsx @@ -533,6 +533,18 @@ const Deployment: React.FC = ({ setActiveTab }) => { info.chainId === chainId && info.env === env ) } + title={ + isDeclaring + ? 'Declaration in progress...' + : account == null + ? 'Account not connected' + : selectedContract.declaredInfo.some( + (info) => info.chainId === chainId && info.env === env + ) + ? `Declared ${selectedContract.name}` + : `Declare ${selectedContract.name}` + } + onClick={handleDeclare} >