fix: home not displayed at dev portal

fix: https://github.com/koreanbots/v2-testing/issues/84
This commit is contained in:
wonderlandpark 2021-05-09 11:52:26 +09:00
parent 2d170d755c
commit f4899357ca

View File

@ -151,10 +151,14 @@ const Navbar = ({ token }:{ token: string }): JSX.Element => {
}`} }`}
> >
<nav className='mt-20'> <nav className='mt-20'>
<Link href='/developers'> <Link href={dev ? '/' : '/developers'}>
<a onClick={()=> setNavbarOpen(false)} className='flex items-center px-8 py-2 text-gray-100 hover:text-gray-300'> <a onClick={()=> setNavbarOpen(false)} className='flex items-center px-8 py-2 text-gray-100 hover:text-gray-300'>
<i className='fas fa-tools' /> {
<span className='px-2 font-medium'></span> dev ? <i className='fas fa-home' /> : <i className='fas fa-tools' />
}
<span className='px-2 font-medium'>
{dev ? '홈' : '개발자'}
</span>
</a> </a>
</Link> </Link>
<Link href='/discord'> <Link href='/discord'>
@ -165,26 +169,13 @@ const Navbar = ({ token }:{ token: string }): JSX.Element => {
</Link> </Link>
<Link href='/about'> <Link href='/about'>
<a onClick={()=> setNavbarOpen(false)} className='flex items-center px-8 py-2 text-gray-100 hover:text-gray-300'> <a onClick={()=> setNavbarOpen(false)} className='flex items-center px-8 py-2 text-gray-100 hover:text-gray-300'>
<svg <i className='fas fa-layer-group' />
className='w-5 h-5' <span className='px-2 font-medium'></span>
viewBox='0 0 24 24'
fill='none'
xmlns='http://www.w3.org/2000/svg'
>
<path
d='M19 11H5M19 11C20.1046 11 21 11.8954 21 13V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V13C3 11.8954 3.89543 11 5 11M19 11V9C19 7.89543 18.1046 7 17 7M5 11V9C5 7.89543 5.89543 7 7 7M7 7V5C7 3.89543 7.89543 3 9 3H15C16.1046 3 17 3.89543 17 5V7M7 7H17'
stroke='currentColor'
strokeWidth='2'
strokeLinecap='round'
strokeLinejoin='round'
/>
</svg>
<span onClick={() => setNavbarOpen(!navbarOpen)} className='px-2 font-medium'></span>
</a> </a>
</Link> </Link>
<Link href='/addbot'> <Link href='/addbot'>
<a onClick={()=> setNavbarOpen(false)} className='flex items-center px-8 py-2 text-gray-100 hover:text-gray-300'> <a onClick={()=> setNavbarOpen(false)} className='flex items-center px-8 py-2 text-gray-100 hover:text-gray-300'>
<i className='fas fa-plus'></i> <i className='fas fa-plus' />
<span className='px-2 font-medium'> </span> <span className='px-2 font-medium'> </span>
</a> </a>
</Link> </Link>