From 6c8679eb43cfc2d8f827be9b34086abccb9870bd Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 25 Dec 2022 23:40:54 -0600 Subject: [PATCH] Pass markdown children properly, use key for LinkIcon --- src/components/ItemCard.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/ItemCard.tsx b/src/components/ItemCard.tsx index 0955c7b..3c7ce2d 100644 --- a/src/components/ItemCard.tsx +++ b/src/components/ItemCard.tsx @@ -26,6 +26,8 @@ const ItemCard = ({banner, bannerBlur, title, description, links, location}: Ite setActive(false); }) + // TODO: Add mobile-only button when tapped showing button link for project page + return
{ @@ -45,14 +47,14 @@ const ItemCard = ({banner, bannerBlur, title, description, links, location}: Ite
{title}
- + {description}
{(links?.length ?? 0) > 0 ?
{links!.map(({icon, location, newTab}) => - {LinkIcons[icon]!({})} )}