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}
dontOverrideColors={mint || burn}
/>
{eoa === true && (
<AddressLegend title="Externally owned account">(EOA)</AddressLegend>
)}
{eoa === false && (
<AddressLegend title="Contract account">(C)</AddressLegend>
{!mint && !burn && (
<>
{eoa === true && (
<AddressLegend title="Externally owned account">
(EOA)
</AddressLegend>
)}
{eoa === false && (
<AddressLegend title="Contract account">(C)</AddressLegend>
)}
</>
)}
</div>
);