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,9 +45,7 @@ const DeveloperLayout = ({ children, enabled, docs, currentDoc }:DeveloperLayout
|
||||
<ul className='text-sm text-gray-600 dark:text-gray-300 px-0.5 mt-6'>
|
||||
{
|
||||
docs?.map(el => {
|
||||
if(el.list) return <>
|
||||
|
||||
<ul key={el.name} className='text-sm py-3'>
|
||||
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>
|
||||
{
|
||||
el.list.map(e =>
|
||||
@ -59,7 +57,7 @@ const DeveloperLayout = ({ children, enabled, docs, currentDoc }:DeveloperLayout
|
||||
)
|
||||
}
|
||||
</ul>
|
||||
</>
|
||||
|
||||
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'}`}>
|
||||
{el.name}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user