From d163c95a6f9ac138ef919ee2cae77b761cb0103d Mon Sep 17 00:00:00 2001 From: Anirban Singha Date: Thu, 24 Oct 2024 21:35:41 +0530 Subject: [PATCH] Issue #296 : (Link not clickable) --- src/pages/projects.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/projects.jsx b/src/pages/projects.jsx index 7156fbc..256677f 100644 --- a/src/pages/projects.jsx +++ b/src/pages/projects.jsx @@ -1,5 +1,6 @@ import Image from 'next/image' import Head from 'next/head' +import { useRouter } from 'next/router' import { Container } from '@/components/Container' import { SectionHeading } from '@/components/SectionHeading' @@ -18,6 +19,9 @@ function LinkIcon(props) { } export default function Projects() { + + const router = useRouter() + return ( <> @@ -54,7 +58,7 @@ export default function Projects() { {project.name} {project.description} -

+

router.push(project.link.href)}> {project.link.label}