File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
packages/nextjs/app/voting/[address] Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 11"use client" ;
22
33import { useMemo } from "react" ;
4+ import Link from "next/link" ;
45import { useParams } from "next/navigation" ;
56import { useQuery } from "@tanstack/react-query" ;
67import { 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 ) : (
You can’t perform that action at this time.
0 commit comments