Skip to content

Commit

Permalink
div to Link in ProjectCard.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKuldeep01 authored Aug 9, 2024
1 parent eaa5c50 commit f0c38e3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Components/ProjectCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ const ProjectCard = ({
}) => {
const navigate = useNavigate();
return (
<div
onClick={() => {
navigate(codelink);
}}
<Link
to={codelink}
title={desc}
className={`left-most px-6 py-4 w-[95%] md:w-[50%] md:min-w-[50%] h-[320px] flex-col items-center border border-black/30 rounded-lg justify-center overflow-hidden relative cursor-pointer ${className}`}
>
Expand All @@ -39,7 +37,7 @@ const ProjectCard = ({
Demo
</Link>
</span>
</div>
</Link>
);
};

Expand Down

0 comments on commit f0c38e3

Please sign in to comment.