diff --git a/bun.lockb b/bun.lockb index 1cc42250..a9aec668 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/web/components/custom/sidebar/partial/link-section.tsx b/web/components/custom/sidebar/partial/link-section.tsx index a2c88f39..a469aaf2 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 } from "next/navigation" +import { usePathname, useRouter } from "next/navigation" import { useAccount } from "@/lib/providers/jazz-provider" import { cn } from "@/lib/utils" import { PersonalLinkLists } from "@/lib/schema/personal-link" @@ -32,19 +32,24 @@ interface LinkSectionHeaderProps { isActive: boolean } -const LinkSectionHeader: React.FC = ({ linkCount, isActive }) => { +const LinkSectionHeader: React.FC = ({ linkCount }) => { + 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}}

diff --git a/web/components/custom/sidebar/partial/profile-section.tsx b/web/components/custom/sidebar/partial/profile-section.tsx index 76c8653e..5ac924ab 100644 --- a/web/components/custom/sidebar/partial/profile-section.tsx +++ b/web/components/custom/sidebar/partial/profile-section.tsx @@ -75,6 +75,17 @@ export const ProfileSection: React.FC = () => { + + + +
+ + Docs +
+ +
+ + signOut()}>