Supress address legend for mint/burn address roles

This commit is contained in:
Willian Mitsuda 2022-03-02 06:40:50 -03:00
parent ddfd0fb935
commit 1edb7ff002
1 changed files with 11 additions and 5 deletions

View File

@ -90,11 +90,17 @@ const DecoratedAddressLink: React.FC<DecoratedAddressLinkProps> = ({
selectedAddress={selectedAddress} selectedAddress={selectedAddress}
dontOverrideColors={mint || burn} dontOverrideColors={mint || burn}
/> />
{eoa === true && ( {!mint && !burn && (
<AddressLegend title="Externally owned account">(EOA)</AddressLegend> <>
)} {eoa === true && (
{eoa === false && ( <AddressLegend title="Externally owned account">
<AddressLegend title="Contract account">(C)</AddressLegend> (EOA)
</AddressLegend>
)}
{eoa === false && (
<AddressLegend title="Contract account">(C)</AddressLegend>
)}
</>
)} )}
</div> </div>
); );