Skip to content

Commit 46128cc

Browse files
committed
add back to home button
1 parent f0051fc commit 46128cc

File tree

1 file changed

+14
-0
lines changed
  • packages/nextjs/app/voting/[address]

1 file changed

+14
-0
lines changed

packages/nextjs/app/voting/[address]/page.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use client";
22

33
import { useMemo } from "react";
4+
import Link from "next/link";
45
import { useParams } from "next/navigation";
56
import { useQuery } from "@tanstack/react-query";
67
import { gql, request } from "graphql-request";
@@ -140,6 +141,19 @@ export default function VotingByAddressPage() {
140141
return (
141142
<div className="flex items-center justify-center flex-col grow pt-6 w-full">
142143
<div className="px-4 sm:px-5 w-full max-w-7xl mx-auto">
144+
<Link href="/" className="btn btn-sm btn-ghost gap-2 mb-4">
145+
<svg
146+
xmlns="http://www.w3.org/2000/svg"
147+
fill="none"
148+
viewBox="0 0 24 24"
149+
strokeWidth={2}
150+
stroke="currentColor"
151+
className="w-4 h-4"
152+
>
153+
<path strokeLinecap="round" strokeLinejoin="round" d="M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18" />
154+
</svg>
155+
Back to Home
156+
</Link>
143157
{!enabled ? (
144158
<div className="mt-6 text-sm opacity-70 text-center">No voting address in URL.</div>
145159
) : (

0 commit comments

Comments
 (0)