Remove unnecessary code

This commit is contained in:
Willian Mitsuda 2021-11-18 15:51:08 -03:00
parent c9f7f46ebc
commit 454f785878
3 changed files with 32 additions and 39 deletions

View File

@ -16,38 +16,34 @@ const InternalCreate: React.FC<InternalCreateProps> = ({
txData, txData,
internalOp, internalOp,
resolvedAddresses, resolvedAddresses,
}) => { }) => (
return ( <div className="flex items-baseline space-x-1 whitespace-nowrap">
<> <span className="text-gray-500">
<div className="flex items-baseline space-x-1 whitespace-nowrap"> <FontAwesomeIcon icon={faAngleRight} size="1x" /> CREATE
<span className="text-gray-500"> </span>
<FontAwesomeIcon icon={faAngleRight} size="1x" /> CREATE <span>Contract</span>
</span> <div className="flex items-baseline">
<span>Contract</span> <AddressHighlighter address={internalOp.to}>
<div className="flex items-baseline"> <DecoratedAddressLink
<AddressHighlighter address={internalOp.to}> address={internalOp.to}
<DecoratedAddressLink creation
address={internalOp.to} resolvedAddresses={resolvedAddresses}
creation />
resolvedAddresses={resolvedAddresses} </AddressHighlighter>
/> </div>
</AddressHighlighter> <span className="flex items-baseline text-gray-400">
</div> (Creator:{" "}
<span className="flex items-baseline text-gray-400"> <AddressHighlighter address={internalOp.from}>
(Creator:{" "} <DecoratedAddressLink
<AddressHighlighter address={internalOp.from}> address={internalOp.from}
<DecoratedAddressLink txFrom={internalOp.from === txData.from}
address={internalOp.from} txTo={internalOp.from === txData.to}
txFrom={internalOp.from === txData.from} resolvedAddresses={resolvedAddresses}
txTo={internalOp.from === txData.to} />
resolvedAddresses={resolvedAddresses} </AddressHighlighter>
/> )
</AddressHighlighter> </span>
) </div>
</span> );
</div>
</>
);
};
export default React.memo(InternalCreate); export default InternalCreate;

View File

@ -8,9 +8,6 @@ import { TransactionData, InternalOperation } from "../types";
import { ResolvedAddresses } from "../api/address-resolver"; import { ResolvedAddresses } from "../api/address-resolver";
import TransactionAddress from "./TransactionAddress"; import TransactionAddress from "./TransactionAddress";
const CHI_ADDRESS = "0x0000000000004946c0e9F43F4Dee607b0eF1fA1c";
const GST2_ADDRESS = "0x0000000000b3F879cb30FE243b4Dfee438691c04";
type InternalSelfDestructProps = { type InternalSelfDestructProps = {
txData: TransactionData; txData: TransactionData;
internalOp: InternalOperation; internalOp: InternalOperation;
@ -81,4 +78,4 @@ const InternalSelfDestruct: React.FC<InternalSelfDestructProps> = ({
); );
}; };
export default React.memo(InternalSelfDestruct); export default InternalSelfDestruct;

View File

@ -71,4 +71,4 @@ const InternalTransfer: React.FC<InternalTransferProps> = ({
); );
}; };
export default React.memo(InternalTransfer); export default InternalTransfer;