diff --git a/web/components/custom/sidebar/partial/link-section.tsx b/web/components/custom/sidebar/partial/link-section.tsx index 0ac854aa..a2c88f39 100644 --- a/web/components/custom/sidebar/partial/link-section.tsx +++ b/web/components/custom/sidebar/partial/link-section.tsx @@ -1,6 +1,6 @@ import React from "react" import Link from "next/link" -import { usePathname, useRouter } from "next/navigation" +import { usePathname } from "next/navigation" import { useAccount } from "@/lib/providers/jazz-provider" import { cn } from "@/lib/utils" import { PersonalLinkLists } from "@/lib/schema/personal-link" @@ -33,23 +33,18 @@ interface LinkSectionHeaderProps { } const LinkSectionHeader: React.FC = ({ linkCount, isActive }) => { - const pathname = usePathname() - const [state] = useQueryState("state", parseAsStringLiteral(LEARNING_STATES.map(ls => ls.value))) - const isLinksActive = pathname.startsWith("/links") && !state - return ( -
+
-

+

Links {linkCount > 0 && {linkCount}}

@@ -58,7 +53,6 @@ const LinkSectionHeader: React.FC = ({ linkCount, isActi ) } -const ALL_STATES = ["all", ...LEARNING_STATES.map(ls => ls.value)] interface ListProps { personalLinks: PersonalLinkLists }