From e94aaece4313c4ee5e43ab2561286fe9e2b83232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Fri, 12 Feb 2021 13:58:45 +0900 Subject: [PATCH] feat: display only 3 categories --- components/BotCard.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/BotCard.tsx b/components/BotCard.tsx index f77f5d1..6a5ea6e 100644 --- a/components/BotCard.tsx +++ b/components/BotCard.tsx @@ -46,9 +46,11 @@ const BotCard = ({ manage=false, bot }: BotProps): JSX.Element => {

{bot.intro}

- {bot.category.slice(0, 5).map(el => ( + {bot.category.slice(0, 3).map(el => ( - ))} + ))} { + bot.category.length > 3 && + }