mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
chore: fixed deepscan issues
This commit is contained in:
parent
03293276ad
commit
6e17a74deb
@ -53,7 +53,7 @@ const BotCard = ({ manage=false, bot }: BotProps): JSX.Element => {
|
||||
<Divider />
|
||||
<div className='flex justify-evenly'>
|
||||
<Link
|
||||
href={makeBotURL(bot)}
|
||||
href={makeBotURL(bot)}
|
||||
>
|
||||
<a className='rounded-bl-2xl py-3 w-full text-center text-koreanbots-blue hover:text-white text-sm font-bold hover:bg-koreanbots-blue hover:shadow-lg transition duration-100 ease-in'>
|
||||
보기
|
||||
@ -66,11 +66,13 @@ const BotCard = ({ manage=false, bot }: BotProps): JSX.Element => {
|
||||
>
|
||||
관리하기
|
||||
</a>
|
||||
</Link> : <a rel='noopener noreferrer' target='_blank' href={bot.url ?? `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'
|
||||
>
|
||||
</Link> : <Link href={bot.url ?? `https://discordapp.com/oauth2/authorize?client_id=${bot.id}&scope=bot&permissions=0`}>
|
||||
<a rel='noopener noreferrer' target='_blank'
|
||||
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>
|
||||
</Link>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -28,7 +28,7 @@ const Tooltip = dynamic(() => import('@components/Tooltip'))
|
||||
const Markdown = dynamic(() => import ('@components/Markdown'))
|
||||
|
||||
const Bots: NextPage<BotsProps> = ({ data, date, user, theme, setTheme }) => {
|
||||
const bg = checkBotFlag(data.flags, 'trusted') && data.banner
|
||||
const bg = checkBotFlag(data?.flags, 'trusted') && data?.banner
|
||||
const router = useRouter()
|
||||
if (!data || !data.id) return <NotFound />
|
||||
if(data.vanity && data.vanity !== router.query.id) router.push(`/bots/${data.vanity}`)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user