diff --git a/web/src/components/BrandBanner.tsx b/web/src/components/BrandBanner.tsx index 1c4746f3..443015ab 100644 --- a/web/src/components/BrandBanner.tsx +++ b/web/src/components/BrandBanner.tsx @@ -1,6 +1,3 @@ -import useCurrentUser from "@/hooks/useCurrentUser"; -import useNavigateTo from "@/hooks/useNavigateTo"; -import { Routes } from "@/router"; import { workspaceStore } from "@/store/v2"; import { cn } from "@/utils"; import UserAvatar from "./UserAvatar"; @@ -12,18 +9,13 @@ interface Props { const BrandBanner = (props: Props) => { const { collapsed } = props; - const navigateTo = useNavigateTo(); - const currentUser = useCurrentUser(); const workspaceGeneralSetting = workspaceStore.state.generalSetting; const title = workspaceGeneralSetting.customProfile?.title || "Memos"; const avatarUrl = workspaceGeneralSetting.customProfile?.logoUrl || "/full-logo.webp"; return (
-
navigateTo(currentUser ? Routes.ROOT : Routes.EXPLORE)} - > +
{!collapsed && {title}}
diff --git a/web/src/components/Navigation.tsx b/web/src/components/Navigation.tsx index 758a6d5a..f760ba86 100644 --- a/web/src/components/Navigation.tsx +++ b/web/src/components/Navigation.tsx @@ -80,7 +80,9 @@ const Navigation = observer((props: Props) => { )} >
- + + + {navLinks.map((navLink) => (