Skip to content

Commit

Permalink
add tooltip to declare button (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleendaly authored Aug 30, 2024
1 parent 68b7163 commit 946fb57
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions plugin/src/features/Deployment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,18 @@ const Deployment: React.FC<DeploymentProps> = ({ 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}
>
<div className="d-flex align-items-center justify-content-center">
Expand Down

0 comments on commit 946fb57

Please sign in to comment.