From e8873a3829e8d800cc7a96ae1cca9bae506455bc Mon Sep 17 00:00:00 2001 From: Suja16 Date: Sun, 8 Dec 2024 02:38:19 +0530 Subject: [PATCH] back arrow added in navigaton --- packages/nextjs/app/leaderboard/page.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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