From 40d79be33df3606d9015c2cef9df397a1bde845b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Sat, 9 Jan 2021 21:52:56 +0900 Subject: [PATCH] feat: added truncate --- components/BotCard.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/components/BotCard.tsx b/components/BotCard.tsx index 3d01bbc..1ff3e06 100644 --- a/components/BotCard.tsx +++ b/components/BotCard.tsx @@ -6,7 +6,6 @@ import Tag from './Tag' import Link from 'next/link' const BotCard = ({ bot }: BotProps): JSX.Element => { - console.log(`${bot.vanity}`) return (
@@ -33,7 +32,7 @@ const BotCard = ({ bot }: BotProps): JSX.Element => { {Status[bot.status]?.text} -

+

{bot.name}{' '} {bot.trusted && ( @@ -56,9 +55,9 @@ const BotCard = ({ bot }: BotProps): JSX.Element => { {formatNumber(bot.servers)} 서버} dark />

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