diff --git a/packages/nextjs/app/leaderboard/page.tsx b/packages/nextjs/app/leaderboard/page.tsx index 9a55458..106710d 100644 --- a/packages/nextjs/app/leaderboard/page.tsx +++ b/packages/nextjs/app/leaderboard/page.tsx @@ -1,6 +1,7 @@ "use client"; import React from "react"; +import { useRouter } from "next/navigation"; import { LEADERBOARD } from "./queries"; import { useQuery } from "@apollo/client"; import { motion } from "framer-motion"; @@ -21,6 +22,7 @@ interface LeaderboardEntry { } export default function Leaderboard() { + const router = useRouter(); const { data, loading, error } = useQuery(LEADERBOARD); if (loading) { @@ -53,9 +55,18 @@ export default function Leaderboard() { return (
- {/* Hero Section */} + {/* Hero Section with Back Button */}
-
+
+ {/* Back Button */} + +

Top Stakers

The highest stakers on our platform are showcased here