feat: disable invite for private bots

This commit is contained in:
Junseo Park 2021-03-01 20:50:49 +09:00
parent a13256242c
commit a4bbca6c3e

View File

@ -86,22 +86,24 @@ const BotCard = ({ manage = false, bot }: BotProps): JSX.Element => {
</a> </a>
</Link> </Link>
) : ( ) : bot.state !== 'ok' ? <a
<Link className='py-3 w-full text-center text-discord-blurple text-sm font-bold rounded-br-2xl hover:shadow-lg transition duration-100 ease-in opacity-50 cursor-default select-none'
href={ >
bot.url ||
`https://discordapp.com/oauth2/authorize?client_id=${bot.id}&scope=bot&permissions=0` </a> : <Link
} href={
bot.url ||
`https://discordapp.com/oauth2/authorize?client_id=${bot.id}&scope=bot&permissions=0`
}
>
<a
rel='noopener noreferrer'
target='_blank'
className='py-3 w-full text-center text-discord-blurple hover:text-white text-sm font-bold hover:bg-discord-blurple rounded-br-2xl hover:shadow-lg transition duration-100 ease-in'
> >
<a
rel='noopener noreferrer' </a>
target='_blank' </Link>}
className='py-3 w-full text-center text-discord-blurple hover:text-white text-sm font-bold hover:bg-discord-blurple rounded-br-2xl hover:shadow-lg transition duration-100 ease-in'
>
</a>
</Link>
)}
</div> </div>
</div> </div>
</div> </div>