From 93ee29b1b0d3a92545e4995a394004f8b8370942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Wed, 10 Feb 2021 13:20:42 +0900 Subject: [PATCH] chore: added manage option for BotCard --- components/BotCard.tsx | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/components/BotCard.tsx b/components/BotCard.tsx index 2ce426c..041ab0d 100644 --- a/components/BotCard.tsx +++ b/components/BotCard.tsx @@ -6,7 +6,7 @@ import Tag from './Tag' import Link from 'next/link' import DiscordAvatar from './DiscordAvatar' -const BotCard = ({ bot }: BotProps): JSX.Element => { +const BotCard = ({ manage=false, bot }: BotProps): JSX.Element => { return (
@@ -56,17 +56,25 @@ const BotCard = ({ bot }: BotProps): JSX.Element => { 보기 - + + 관리하기 + + : + } + className='rounded-br-2xl py-3 w-full text-center text-discord-blurple hover:text-white text-sm font-bold hover:bg-discord-blurple hover:shadow-lg transition duration-100 ease-in' + > 초대하기 - + + }
@@ -77,6 +85,7 @@ const BotCard = ({ bot }: BotProps): JSX.Element => { } interface BotProps { + manage?: boolean bot: Bot }