mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
check
This commit is contained in:
@@ -9,10 +9,9 @@ import { useRouter } from 'next/router'
|
||||
* @constructor
|
||||
*/
|
||||
const TagGroups = ({ tags, className }) => {
|
||||
if (!tags) return <></>
|
||||
|
||||
const router = useRouter()
|
||||
const { tag: currentTag } = router.query
|
||||
if (!tags) return <></>
|
||||
|
||||
return (
|
||||
<div id="tags-group" className="dark:border-gray-700 space-y-2">
|
||||
@@ -31,11 +30,13 @@ const TagGroups = ({ tags, className }) => {
|
||||
flex items-center hover:bg-blue-600 dark:hover:bg-yellow-600 hover:scale-110 hover:text-white rounded-lg px-2 py-0.5 duration-150 transition-all`}
|
||||
>
|
||||
<div className="text-lg">{tag.name} </div>
|
||||
{tag.count ? (
|
||||
{tag.count
|
||||
? (
|
||||
<sup className="relative ml-1">{tag.count}</sup>
|
||||
) : (
|
||||
)
|
||||
: (
|
||||
<></>
|
||||
)}
|
||||
)}
|
||||
</div>
|
||||
</Link>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user