Skip to content

Commit fff82d9

Browse files
biu6iuflatplum
authored andcommitted
made whole box clickable
1 parent 8930b50 commit fff82d9

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/features/LinkItem/LinkItem.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ const LinkItem = ({ title, link, category }: LinkItemProps) => {
2828
);
2929
} else {
3030
return (
31-
<motion.button
32-
whileHover={{ scale: 1.05 }}
33-
className="w-full px-4 py-6 rounded-xl bg-black/20 border border-white backdrop-blur font-medium text-lg">
34-
<DynamicLink link={link}>{title}</DynamicLink>
35-
</motion.button>
31+
<DynamicLink link={link} className="w-full">
32+
<motion.div
33+
whileHover={{ scale: 1.05 }}
34+
className="w-full px-4 py-6 rounded-xl bg-black/20 border border-white backdrop-blur font-medium text-lg text-center cursor-pointer">
35+
{title}
36+
</motion.div>
37+
</DynamicLink>
3638
);
3739
}
3840
};

0 commit comments

Comments
 (0)