[hotfix] unable to open supporter link

This commit is contained in:
MathieuG-P
2023-04-09 03:04:58 +02:00
parent 9ff47b6895
commit 7da09c117f
@@ -21,7 +21,7 @@ export function SupporterItem({supporter, delay}: Props) {
})();
const renderSpan = () => {
return <motion.span className="text-2xl font-bold px-3 pb-1" style={additionnalStyles} initial={{y: "100%", opacity: 0}} animate={{y: 0, opacity: 1}} transition={{delay: delay}}>{supporter.username}</motion.span>;
return <motion.span className={`text-2xl font-bold px-3 pb-1 ${supporter.link && "cursor-pointer"}`} style={additionnalStyles} onClick={openSupporterLink} initial={{y: "100%", opacity: 0}} animate={{y: 0, opacity: 1}} transition={{delay: delay}}>{supporter.username}</motion.span>;
}
const renderItem = () => {