replaced link outer component with <Link> tag for better accessibility

This commit is contained in:
daniel31x13
2023-12-31 10:05:30 -05:00
parent 1dde8a6088
commit 29e0370808
6 changed files with 74 additions and 66 deletions
@@ -17,7 +17,7 @@ export default function LinkCollection({
return (
<div
onClick={(e) => {
e.stopPropagation();
e.preventDefault();
router.push(`/collections/${link.collection.id}`);
}}
className="flex items-center gap-1 max-w-full w-fit hover:opacity-70 duration-100"