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