feat: added blocked state

This commit is contained in:
Junseo Park 2021-03-01 21:11:58 +09:00
parent a4bbca6c3e
commit 2d7cfabfc0
2 changed files with 172 additions and 163 deletions

View File

@ -44,6 +44,13 @@ const Bots: NextPage<BotsProps> = ({ data, date, user, theme, setTheme }) => {
: `https://cdn.discordapp.com/embed/avatars/${Number(data.tag) % 5}.png?size=1024`
}
/>
{
data.state === 'blocked' ? <div className='pb-40'>
<Message type='error'>
<h2 className='text-lg font-black'> .</h2>
</Message>
</div>
: <>
<div className='w-full pb-2'>
{
data.state === 'private' ? <Message type='info'>
@ -215,6 +222,8 @@ const Bots: NextPage<BotsProps> = ({ data, date, user, theme, setTheme }) => {
<Advertisement />
</div>
</div>
</>
}
</Container>
<Footer color='bg-transparent text-discord-black text-white hidden md:block transform rotate-180' theme={theme} setTheme={setTheme} />

View File

@ -143,7 +143,7 @@ export type Theme = 'dark' | 'light' | 'system'
export type Status = 'online' | 'offline' | 'dnd' | 'idle' | 'streaming' | null
export type BotState = 'ok' | 'reported' | 'archived' | 'private'
export type BotState = 'ok' | 'reported' | 'blocked' | 'archived' | 'private'
export type Library =
| 'discord.js'