fix: ul can only contains li, script or template

This commit is contained in:
xHyroM 2023-06-04 11:19:37 +02:00
parent fe14f0fb3d
commit 901dd16f6d
No known key found for this signature in database
GPG key ID: BE0423F386C436AA

View file

@ -43,7 +43,7 @@ const getLinkClasses = (link: Sidebar) => {
{ {
docs.sidebar.map((item) => docs.sidebar.map((item) =>
item.header ? ( item.header ? (
<h2 class="mt-4 font-semibold text-white">{item.text}</h2> <li class="mt-4 font-semibold text-white">{item.text}</li>
) : ( ) : (
<li class={getLinkClasses(item)}> <li class={getLinkClasses(item)}>
<a href={item.link}>{item.text}</a> <a href={item.link}>{item.text}</a>