mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 22:30:23 +00:00
chore: added manage option for BotCard
This commit is contained in:
parent
bc7e0d7a4d
commit
93ee29b1b0
@ -6,7 +6,7 @@ import Tag from './Tag'
|
|||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import DiscordAvatar from './DiscordAvatar'
|
import DiscordAvatar from './DiscordAvatar'
|
||||||
|
|
||||||
const BotCard = ({ bot }: BotProps): JSX.Element => {
|
const BotCard = ({ manage=false, bot }: BotProps): JSX.Element => {
|
||||||
return (
|
return (
|
||||||
<div className='container mb-20'>
|
<div className='container mb-20'>
|
||||||
<div className='relative'>
|
<div className='relative'>
|
||||||
@ -56,17 +56,25 @@ const BotCard = ({ bot }: BotProps): JSX.Element => {
|
|||||||
보기
|
보기
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
<a
|
{
|
||||||
rel='noopener noreferrer'
|
manage ? <Link href={`/manage/${bot.id}`}>
|
||||||
target='_blank'
|
<a
|
||||||
href={
|
className='rounded-br-2xl py-3 w-full text-center text-green-500 hover:text-white text-sm font-bold hover:bg-green-500 hover:shadow-lg transition duration-100 ease-in'
|
||||||
bot.url ??
|
>
|
||||||
|
관리하기
|
||||||
|
</a>
|
||||||
|
</Link> : <a
|
||||||
|
rel='noopener noreferrer'
|
||||||
|
target='_blank'
|
||||||
|
href={
|
||||||
|
bot.url ??
|
||||||
`https://discordapp.com/oauth2/authorize?client_id=${bot.id}&scope=bot&permissions=0`
|
`https://discordapp.com/oauth2/authorize?client_id=${bot.id}&scope=bot&permissions=0`
|
||||||
}
|
}
|
||||||
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'
|
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'
|
||||||
>
|
>
|
||||||
초대하기
|
초대하기
|
||||||
</a>
|
</a>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -77,6 +85,7 @@ const BotCard = ({ bot }: BotProps): JSX.Element => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface BotProps {
|
interface BotProps {
|
||||||
|
manage?: boolean
|
||||||
bot: Bot
|
bot: Bot
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user