Change self-destruct address decoration
This commit is contained in:
parent
9b957d8d20
commit
5b630e7757
|
@ -2,6 +2,7 @@ import React from "react";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
import {
|
import {
|
||||||
faStar,
|
faStar,
|
||||||
|
faBomb,
|
||||||
faMoneyBillAlt,
|
faMoneyBillAlt,
|
||||||
faBurn,
|
faBurn,
|
||||||
faCoins,
|
faCoins,
|
||||||
|
@ -53,6 +54,11 @@ const DecoratedAddresssLink: React.FC<DecoratedAddressLinkProps> = ({
|
||||||
<FontAwesomeIcon icon={faStar} size="1x" />
|
<FontAwesomeIcon icon={faStar} size="1x" />
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
{selfDestruct && (
|
||||||
|
<span className="text-red-800" title="Self destruct">
|
||||||
|
<FontAwesomeIcon icon={faBomb} size="1x" />
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
{mint && (
|
{mint && (
|
||||||
<span className="text-green-500" title="Mint address">
|
<span className="text-green-500" title="Mint address">
|
||||||
<FontAwesomeIcon icon={faMoneyBillAlt} size="1x" />
|
<FontAwesomeIcon icon={faMoneyBillAlt} size="1x" />
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { useContext } from "react";
|
import React, { useContext } from "react";
|
||||||
import { ethers } from "ethers";
|
import { ethers } from "ethers";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
import { faAngleRight, faBomb } from "@fortawesome/free-solid-svg-icons";
|
import { faAngleRight } from "@fortawesome/free-solid-svg-icons";
|
||||||
import AddressHighlighter from "./AddressHighlighter";
|
import AddressHighlighter from "./AddressHighlighter";
|
||||||
import DecoratedAddressLink from "./DecoratedAddressLink";
|
import DecoratedAddressLink from "./DecoratedAddressLink";
|
||||||
import { RuntimeContext } from "../useRuntime";
|
import { RuntimeContext } from "../useRuntime";
|
||||||
|
@ -28,10 +28,7 @@ const InternalSelfDestruct: React.FC<InternalSelfDestructProps> = ({
|
||||||
<>
|
<>
|
||||||
<div className="flex items-baseline space-x-1 text-xs">
|
<div className="flex items-baseline space-x-1 text-xs">
|
||||||
<span className="text-gray-500">
|
<span className="text-gray-500">
|
||||||
<span className="text-red-900">
|
<FontAwesomeIcon icon={faAngleRight} size="1x" /> SELF DESTRUCT
|
||||||
<FontAwesomeIcon icon={faBomb} size="1x" />
|
|
||||||
</span>{" "}
|
|
||||||
SELF DESTRUCT
|
|
||||||
</span>
|
</span>
|
||||||
<span>Contract</span>
|
<span>Contract</span>
|
||||||
<div className="flex items-baseline">
|
<div className="flex items-baseline">
|
||||||
|
|
Loading…
Reference in New Issue