mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-09 07:26:47 +00:00
@@ -1,4 +1,4 @@
|
||||
import Link from 'next/link'
|
||||
import SmartLink from '@/components/SmartLink'
|
||||
import { useGlobal } from '@/lib/global'
|
||||
|
||||
const CategoryList = ({ currentCategory, categoryOptions }) => {
|
||||
@@ -13,7 +13,7 @@ const CategoryList = ({ currentCategory, categoryOptions }) => {
|
||||
{categoryOptions?.map(category => {
|
||||
const selected = category.name === currentCategory
|
||||
return (
|
||||
<Link
|
||||
<SmartLink
|
||||
key={category.name}
|
||||
href={`/category/${category.name}`}
|
||||
passHref
|
||||
@@ -30,7 +30,7 @@ const CategoryList = ({ currentCategory, categoryOptions }) => {
|
||||
{`${category.name} (${category.count})`}
|
||||
</a>
|
||||
</li>
|
||||
</Link>
|
||||
</SmartLink>
|
||||
)
|
||||
})}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user