diff --git a/web/src/components/MobileHeader.tsx b/web/src/components/MobileHeader.tsx index b852598832294..e36c49481f6ca 100644 --- a/web/src/components/MobileHeader.tsx +++ b/web/src/components/MobileHeader.tsx @@ -1,7 +1,9 @@ import clsx from "clsx"; -import { useState } from "react"; import useWindowScroll from "react-use/lib/useWindowScroll"; import useResponsiveWidth from "@/hooks/useResponsiveWidth"; +import { useWorkspaceSettingStore } from "@/store/v1"; +import { WorkspaceGeneralSetting } from "@/types/proto/api/v1/workspace_setting_service"; +import { WorkspaceSettingKey } from "@/types/proto/store/workspace_setting"; import NavigationDrawer from "./NavigationDrawer"; interface Props { @@ -12,8 +14,10 @@ interface Props { const MobileHeader = (props: Props) => { const { className, children } = props; const { sm } = useResponsiveWidth(); - const [titleText] = useState("Memos"); const { y: offsetTop } = useWindowScroll(); + const workspaceSettingStore = useWorkspaceSettingStore(); + const workspaceGeneralSetting = + workspaceSettingStore.getWorkspaceSettingByKey(WorkspaceSettingKey.GENERAL).generalSetting || WorkspaceGeneralSetting.fromPartial({}); return (