Link Sourcify decoration directly to contracts verification info page

This commit is contained in:
Willian Mitsuda 2021-11-19 14:52:00 -03:00
parent 2fbc233fa1
commit f0c78b6a12

View File

@ -1,4 +1,5 @@
import React from "react";
import { NavLink } from "react-router-dom";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faStar } from "@fortawesome/free-solid-svg-icons/faStar";
import { faBomb } from "@fortawesome/free-solid-svg-icons/faBomb";
@ -75,7 +76,10 @@ const DecoratedAddressLink: React.FC<DecoratedAddressLinkProps> = ({
</span>
)}
{metadata && (
<span className="self-center flex-shrink-0 flex items-center">
<NavLink
className="self-center flex-shrink-0 flex items-center"
to={`/address/${address}/contract`}
>
<img
src={SourcifyLogo}
alt="Sourcify logo"
@ -83,7 +87,7 @@ const DecoratedAddressLink: React.FC<DecoratedAddressLinkProps> = ({
width={16}
height={16}
/>
</span>
</NavLink>
)}
<AddressOrENSName
address={address}