Skip to content

Commit

Permalink
fix link to product details
Browse files Browse the repository at this point in the history
fix link to product details
  • Loading branch information
niyibi250 committed Jul 22, 2024
1 parent dfea9f2 commit 06866fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"axios-mock-adapter": "^1.22.0",
"chart.js": "^4.4.3",
"date-fns": "^3.6.0",
"chart.js": "^4.4.3",
"cloudinary": "^2.2.0",
"cloudinary-core": "^2.13.1",
"dotenv": "^16.4.5",
Expand Down
7 changes: 5 additions & 2 deletions src/components/Popular/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ interface MostPopularItemProps {

function SingleItem({ product }: MostPopularItemProps) {
return (
<div className=" flex flex-row hover:scale-105 hover:translate-y-0.5 hover:translate-x-0.5">
<a
href={`product-details/${product.id}`}
className=" flex flex-row hover:scale-105 hover:translate-y-0.5 hover:translate-x-0.5"
>
<div className=" flex flex-row items-center justify-center h-20 w-20 ">
<img
src={product.image}
Expand All @@ -27,7 +30,7 @@ function SingleItem({ product }: MostPopularItemProps) {
</p>
</div>
</div>
</div>
</a>
);
}

Expand Down

0 comments on commit 06866fc

Please sign in to comment.