fix: remove asChild prop

This commit is contained in:
Thomas Bishop 2025-07-25 15:46:14 +01:00
parent a772a6567e
commit 4e7d4f6a3c
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ export default function EntriesListSidebar() {
<div ref={scrollRef} onScroll={handleScroll} className="max-h-100 overflow-y-auto"> <div ref={scrollRef} onScroll={handleScroll} className="max-h-100 overflow-y-auto">
<SidebarMenuSub> <SidebarMenuSub>
{entries?.data.map((item, i) => ( {entries?.data.map((item, i) => (
<SidebarMenuItem key={i} asChild> <SidebarMenuItem key={i}>
<Link to={`/entries/${item.title}`}> <Link to={`/entries/${item.title}`}>
<span className="text-xs text-black hover:text-gray-600 active:text-gray-700 focus:text-gray-900"> <span className="text-xs text-black hover:text-gray-600 active:text-gray-700 focus:text-gray-900">
{item.title.replace(/_/g, " ")} {item.title.replace(/_/g, " ")}

View file

@ -60,7 +60,7 @@ export default function TagListSidebar() {
<div ref={scrollRef} onScroll={handleScroll} className="max-h-100 overflow-y-auto"> <div ref={scrollRef} onScroll={handleScroll} className="max-h-100 overflow-y-auto">
<SidebarMenuSub> <SidebarMenuSub>
{tags?.data.map((item, i) => ( {tags?.data.map((item, i) => (
<SidebarMenuItem key={i} asChild> <SidebarMenuItem key={i}>
<Link to={`/tags/${item}`}> <Link to={`/tags/${item}`}>
<span className="text-xs text-black hover:text-gray-600 active:text-gray-700 focus:text-gray-900"> <span className="text-xs text-black hover:text-gray-600 active:text-gray-700 focus:text-gray-900">
{item} {item}