fix: remove asChild prop
This commit is contained in:
parent
a772a6567e
commit
4e7d4f6a3c
2 changed files with 2 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ export default function EntriesListSidebar() {
|
|||
<div ref={scrollRef} onScroll={handleScroll} className="max-h-100 overflow-y-auto">
|
||||
<SidebarMenuSub>
|
||||
{entries?.data.map((item, i) => (
|
||||
<SidebarMenuItem key={i} asChild>
|
||||
<SidebarMenuItem key={i}>
|
||||
<Link to={`/entries/${item.title}`}>
|
||||
<span className="text-xs text-black hover:text-gray-600 active:text-gray-700 focus:text-gray-900">
|
||||
{item.title.replace(/_/g, " ")}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export default function TagListSidebar() {
|
|||
<div ref={scrollRef} onScroll={handleScroll} className="max-h-100 overflow-y-auto">
|
||||
<SidebarMenuSub>
|
||||
{tags?.data.map((item, i) => (
|
||||
<SidebarMenuItem key={i} asChild>
|
||||
<SidebarMenuItem key={i}>
|
||||
<Link to={`/tags/${item}`}>
|
||||
<span className="text-xs text-black hover:text-gray-600 active:text-gray-700 focus:text-gray-900">
|
||||
{item}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue