Skip to content

Commit 5daa7c3

Browse files
committed
Change the Verify button on the landing page, and use Button component
1 parent 51a760f commit 5daa7c3

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/pages/LandingPage/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ const LandingPage = () => {
168168
className="flex flex-col items-center justify-center sm:flex-row gap-2 md:gap-4 mt-4 lg:mt-12 opacity-0 animate-fade-up"
169169
style={{ animationDelay: "1700ms" }}
170170
>
171-
<Link to="/verifier">
171+
<a href={process.env.REACT_APP_VERIFY_URL} target="_blank" rel="noopener noreferrer">
172172
<Button className="uppercase mt-4">Verify Contract</Button>
173-
</Link>
173+
</a>
174174
<a href={DOCS_URL}>
175175
<Button className="uppercase mt-4" type="secondary">
176176
Documentation

src/pages/VerifyRedirect/index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Header from "../../components/Header";
2+
import Button from "../../components/Button";
23

34
const VerifyRedirect: React.FC = () => {
45
const handleRedirect = () => {
@@ -14,12 +15,9 @@ const VerifyRedirect: React.FC = () => {
1415
<p className="text-lg mb-8 text-gray-600">
1516
We've launched a new and improved verification interface using Sourcify's new APIv2.
1617
</p>
17-
<button
18-
onClick={handleRedirect}
19-
className="bg-ceruleanBlue-500 hover:bg-ceruleanBlue-600 text-white font-bold py-3 px-6 rounded-lg text-lg transition-colors duration-200"
20-
>
18+
<Button onClick={handleRedirect} className="text-lg">
2119
Go to New Verification UI
22-
</button>
20+
</Button>
2321
<p className="text-sm text-gray-400 mt-4">You will be redirected to {process.env.REACT_APP_VERIFY_URL}</p>
2422
</div>
2523
</div>

0 commit comments

Comments
 (0)