Extract Sourcify logo component
This commit is contained in:
parent
379ffda83e
commit
7946188633
|
@ -16,12 +16,12 @@ import StandardFrame from "./StandardFrame";
|
||||||
import StandardSubtitle from "./StandardSubtitle";
|
import StandardSubtitle from "./StandardSubtitle";
|
||||||
import Copy from "./components/Copy";
|
import Copy from "./components/Copy";
|
||||||
import NavTab from "./components/NavTab";
|
import NavTab from "./components/NavTab";
|
||||||
|
import SourcifyLogo from "./sourcify/SourcifyLogo";
|
||||||
import AddressTransactionResults from "./address/AddressTransactionResults";
|
import AddressTransactionResults from "./address/AddressTransactionResults";
|
||||||
import Contracts from "./address/Contracts";
|
import Contracts from "./address/Contracts";
|
||||||
import { RuntimeContext } from "./useRuntime";
|
import { RuntimeContext } from "./useRuntime";
|
||||||
import { useAppConfigContext } from "./useAppConfig";
|
import { useAppConfigContext } from "./useAppConfig";
|
||||||
import { useSingleMetadata } from "./useSourcify";
|
import { useSingleMetadata } from "./useSourcify";
|
||||||
import SourcifyLogo from "./sourcify.svg";
|
|
||||||
|
|
||||||
const AddressTransactions: React.FC = () => {
|
const AddressTransactions: React.FC = () => {
|
||||||
const { provider } = useContext(RuntimeContext);
|
const { provider } = useContext(RuntimeContext);
|
||||||
|
@ -143,13 +143,7 @@ const AddressTransactions: React.FC = () => {
|
||||||
</span>
|
</span>
|
||||||
) : (
|
) : (
|
||||||
<span className="self-center">
|
<span className="self-center">
|
||||||
<img
|
<SourcifyLogo />
|
||||||
src={SourcifyLogo}
|
|
||||||
alt="Sourcify logo"
|
|
||||||
title="Verified by Sourcify"
|
|
||||||
width={16}
|
|
||||||
height={16}
|
|
||||||
/>
|
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -7,10 +7,10 @@ import { faMoneyBillAlt } from "@fortawesome/free-solid-svg-icons/faMoneyBillAlt
|
||||||
import { faBurn } from "@fortawesome/free-solid-svg-icons/faBurn";
|
import { faBurn } from "@fortawesome/free-solid-svg-icons/faBurn";
|
||||||
import { faCoins } from "@fortawesome/free-solid-svg-icons/faCoins";
|
import { faCoins } from "@fortawesome/free-solid-svg-icons/faCoins";
|
||||||
import AddressOrENSName from "./AddressOrENSName";
|
import AddressOrENSName from "./AddressOrENSName";
|
||||||
|
import SourcifyLogo from "../sourcify/SourcifyLogo";
|
||||||
import { AddressContext, ZERO_ADDRESS } from "../types";
|
import { AddressContext, ZERO_ADDRESS } from "../types";
|
||||||
import { ResolvedAddresses } from "../api/address-resolver";
|
import { ResolvedAddresses } from "../api/address-resolver";
|
||||||
import { Metadata } from "../useSourcify";
|
import { Metadata } from "../useSourcify";
|
||||||
import SourcifyLogo from "../sourcify.svg";
|
|
||||||
|
|
||||||
type DecoratedAddressLinkProps = {
|
type DecoratedAddressLinkProps = {
|
||||||
address: string;
|
address: string;
|
||||||
|
@ -80,13 +80,7 @@ const DecoratedAddressLink: React.FC<DecoratedAddressLinkProps> = ({
|
||||||
className="self-center flex-shrink-0 flex items-center"
|
className="self-center flex-shrink-0 flex items-center"
|
||||||
to={`/address/${address}/contract`}
|
to={`/address/${address}/contract`}
|
||||||
>
|
>
|
||||||
<img
|
<SourcifyLogo />
|
||||||
src={SourcifyLogo}
|
|
||||||
alt="Sourcify logo"
|
|
||||||
title="Verified by Sourcify"
|
|
||||||
width={16}
|
|
||||||
height={16}
|
|
||||||
/>
|
|
||||||
</NavLink>
|
</NavLink>
|
||||||
)}
|
)}
|
||||||
<AddressOrENSName
|
<AddressOrENSName
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
import React from "react";
|
||||||
|
import SourcifyIcon from "./sourcify.svg";
|
||||||
|
|
||||||
|
const SourcifyLogo: React.FC = () => (
|
||||||
|
<img
|
||||||
|
src={SourcifyIcon}
|
||||||
|
alt="Sourcify logo"
|
||||||
|
title="Verified by Sourcify"
|
||||||
|
width={16}
|
||||||
|
height={16}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
export default SourcifyLogo;
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Loading…
Reference in New Issue