chore: fixed deepscan issues

This commit is contained in:
원더 2021-02-12 13:14:55 +09:00
parent 03293276ad
commit 6e17a74deb
2 changed files with 8 additions and 6 deletions

View File

@ -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>

View File

@ -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}`)