chore: removed div

This commit is contained in:
Junseo Park 2021-02-14 13:33:09 +09:00
parent df1c71e021
commit 347a326cc6

View File

@ -31,7 +31,7 @@ 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() const router = useRouter()
if (!data || !data.id) return <NotFound /> if (!data || !data.id) return <NotFound />
if(data.vanity && data.vanity !== router.query.id) router.push(`/bots/${data.vanity}`) if((checkBotFlag(data.flags, 'trusted') || checkBotFlag(data.flags, 'partnered')) && data.vanity && data.vanity !== router.query.id) router.push(`/bots/${data.vanity}`)
return <div style={bg ? { background: `linear-gradient(to right, rgba(34, 36, 38, 0.68), rgba(34, 36, 38, 0.68)), url("${data.bg}") center top / cover no-repeat fixed` } : {}}> return <div style={bg ? { background: `linear-gradient(to right, rgba(34, 36, 38, 0.68), rgba(34, 36, 38, 0.68)), url("${data.bg}") center top / cover no-repeat fixed` } : {}}>
<Container paddingTop className='py-10'> <Container paddingTop className='py-10'>
<SEO <SEO
@ -51,7 +51,6 @@ const Bots: NextPage<BotsProps> = ({ data, date, user, theme, setTheme }) => {
/> />
</div> </div>
<div className='flex-grow px-5 py-12 w-full text-center lg:w-5/12 lg:text-left'> <div className='flex-grow px-5 py-12 w-full text-center lg:w-5/12 lg:text-left'>
<div>
<Tag <Tag
circular circular
text={ text={
@ -71,7 +70,6 @@ const Bots: NextPage<BotsProps> = ({ data, date, user, theme, setTheme }) => {
</Tooltip> </Tooltip>
) : ''} ) : ''}
</h1> </h1>
</div>
<p className={`${bg ? 'text-gray-300' : 'dark:text-gray-300 text-gray-800'} text-base`}>{data.intro}</p> <p className={`${bg ? 'text-gray-300' : 'dark:text-gray-300 text-gray-800'} text-base`}>{data.intro}</p>
</div> </div>
<div className='w-full lg:w-1/4 lg:pt-10'> <div className='w-full lg:w-1/4 lg:pt-10'>