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,
internalOp,
resolvedAddresses,
}) => {
return (
<>
<div className="flex items-baseline space-x-1 whitespace-nowrap">
<span className="text-gray-500">
<FontAwesomeIcon icon={faAngleRight} size="1x" /> CREATE
</span>
<span>Contract</span>
<div className="flex items-baseline">
<AddressHighlighter address={internalOp.to}>
<DecoratedAddressLink
address={internalOp.to}
creation
resolvedAddresses={resolvedAddresses}
/>
</AddressHighlighter>
</div>
<span className="flex items-baseline text-gray-400">
(Creator:{" "}
<AddressHighlighter address={internalOp.from}>
<DecoratedAddressLink
address={internalOp.from}
txFrom={internalOp.from === txData.from}
txTo={internalOp.from === txData.to}
resolvedAddresses={resolvedAddresses}
/>
</AddressHighlighter>
)
</span>
</div>
</>
);
};
}) => (
<div className="flex items-baseline space-x-1 whitespace-nowrap">
<span className="text-gray-500">
<FontAwesomeIcon icon={faAngleRight} size="1x" /> CREATE
</span>
<span>Contract</span>
<div className="flex items-baseline">
<AddressHighlighter address={internalOp.to}>
<DecoratedAddressLink
address={internalOp.to}
creation
resolvedAddresses={resolvedAddresses}
/>
</AddressHighlighter>
</div>
<span className="flex items-baseline text-gray-400">
(Creator:{" "}
<AddressHighlighter address={internalOp.from}>
<DecoratedAddressLink
address={internalOp.from}
txFrom={internalOp.from === txData.from}
txTo={internalOp.from === txData.to}
resolvedAddresses={resolvedAddresses}
/>
</AddressHighlighter>
)
</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 TransactionAddress from "./TransactionAddress";
const CHI_ADDRESS = "0x0000000000004946c0e9F43F4Dee607b0eF1fA1c";
const GST2_ADDRESS = "0x0000000000b3F879cb30FE243b4Dfee438691c04";
type InternalSelfDestructProps = {
txData: TransactionData;
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;