mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
style: fixed missing key
This commit is contained in:
parent
b08459a95a
commit
8b24b987e4
@ -45,21 +45,19 @@ const DeveloperLayout = ({ children, enabled, docs, currentDoc }:DeveloperLayout
|
|||||||
<ul className='text-sm text-gray-600 dark:text-gray-300 px-0.5 mt-6'>
|
<ul className='text-sm text-gray-600 dark:text-gray-300 px-0.5 mt-6'>
|
||||||
{
|
{
|
||||||
docs?.map(el => {
|
docs?.map(el => {
|
||||||
if(el.list) return <>
|
if(el.list) return <ul key={el.name} className='text-sm py-3'>
|
||||||
|
<span className='text-gray-600 dark:text-gray-100 font-bold my-1'>{el.name}</span>
|
||||||
<ul key={el.name} className='text-sm py-3'>
|
{
|
||||||
<span className='text-gray-600 dark:text-gray-100 font-bold my-1'>{el.name}</span>
|
el.list.map(e =>
|
||||||
{
|
<Link key={e.name} href={`/developers/docs/${el.name}/${e.name}`}>
|
||||||
el.list.map(e =>
|
<li className={`cursor-pointer px-4 py-2 rounded-md ${currentDoc === e.name ? 'bg-discord-blurple text-white' : 'hover:text-gray-500 dark:hover:text-white'}`}>
|
||||||
<Link key={e.name} href={`/developers/docs/${el.name}/${e.name}`}>
|
{e.name}
|
||||||
<li className={`cursor-pointer px-4 py-2 rounded-md ${currentDoc === e.name ? 'bg-discord-blurple text-white' : 'hover:text-gray-500 dark:hover:text-white'}`}>
|
</li>
|
||||||
{e.name}
|
</Link>
|
||||||
</li>
|
)
|
||||||
</Link>
|
}
|
||||||
)
|
</ul>
|
||||||
}
|
|
||||||
</ul>
|
|
||||||
</>
|
|
||||||
return <Link key={el.name} href={`/developers/docs/${el.name}`}>
|
return <Link key={el.name} href={`/developers/docs/${el.name}`}>
|
||||||
<li className={`cursor-pointer py-2 px-4 rounded-md ${currentDoc === el.name ? 'bg-discord-blurple text-white' : 'hover:text-gray-500 dark:hover:text-white'}`}>
|
<li className={`cursor-pointer py-2 px-4 rounded-md ${currentDoc === el.name ? 'bg-discord-blurple text-white' : 'hover:text-gray-500 dark:hover:text-white'}`}>
|
||||||
{el.name}
|
{el.name}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user