diff --git a/components/01-atoms/BlockExplorerExternalLinkButton.tsx b/components/01-atoms/BlockExplorerExternalLinkButton.tsx new file mode 100644 index 00000000..1d29e1ff --- /dev/null +++ b/components/01-atoms/BlockExplorerExternalLinkButton.tsx @@ -0,0 +1,36 @@ +import { ExternalLinkIcon } from "@/components/01-atoms"; +import { EthereumAddress } from "@/lib/shared/types"; +import { useNetwork } from "wagmi"; + +export const BlockExplorerExternalLinkButton = ({ + address, + label, +}: { + address: EthereumAddress; + label?: string; +}) => { + const { chain } = useNetwork(); + + if (!address) return null; + + const displayEllipsedAddress = address.getEllipsedAddress(); + + const blockExplorer = `${ + chain?.blockExplorers?.default.url + }/address/${address.toString()}`; + + return ( +
+ ); +}; diff --git a/components/01-atoms/LoadingIndicator.tsx b/components/01-atoms/LoadingIndicator.tsx index 8c1da6b7..d4765759 100644 --- a/components/01-atoms/LoadingIndicator.tsx +++ b/components/01-atoms/LoadingIndicator.tsx @@ -1,5 +1,8 @@ -import React, { HTMLProps } from "react"; +import { HTMLProps } from "react"; export const LoadingIndicator = (props: HTMLProps{getTokenName(token)}
+- CLICK TO APPROVE -
- ) : tokenApprovalStatus === - TokenApprovalStatus.APPROVE_IN_YOUR_WALLET ? ( -- APPROVE TRANSACTION REQUEST IN YOUR WALLET -
- ) : tokenApprovalStatus === - TokenApprovalStatus.WAITING_BLOCKCHAIN_CONFIRMATION ? ( -- WAITING FOR BLOCKCHAIN CONFIRMATION -
- ) : TokenApprovalStatus.APPROVED ? ( -APPROVED
-{getTokenName(token)}
++ CLICK TO APPROVE +
+ ) : tokenApprovalStatus === + TokenApprovalStatus.APPROVE_IN_YOUR_WALLET ? ( ++ APPROVE TRANSACTION REQUEST IN YOUR WALLET +
+ ) : tokenApprovalStatus === + TokenApprovalStatus.WAITING_BLOCKCHAIN_CONFIRMATION ? ( ++ WAITING FOR BLOCKCHAIN CONFIRMATION +
+ ) : TokenApprovalStatus.APPROVED ? ( +APPROVED
+