add icon funnies for email icon

This commit is contained in:
Lio 2024-07-25 20:44:53 +02:00
parent 37bbaf262e
commit 89b40c2b3a

View file

@ -7,7 +7,7 @@ const useIcons = Boolify(import.meta.env.PUBLIC_USEICONS);
{
useIcons && (
<a href={href} target="_blank" rel="noopener noreferrer">
<i class={`fa-brands fa-${icon ? icon : text.toLowerCase()} fa-2xl`} />
<i class={`fa${(icon ? icon : text.toLowerCase()) == "envelope" ? '' : '-brands'} fa-${icon ? icon : text.toLowerCase()} fa-2xl`} />
</a>
)
}