From e6e15023081c7c290c648ab3c6578ab2115913e3 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Wed, 4 Sep 2024 21:57:23 +0800 Subject: [PATCH] feat: remove hashtag title --- src/renderer/src/pages/home/Navbar.tsx | 27 +++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/renderer/src/pages/home/Navbar.tsx b/src/renderer/src/pages/home/Navbar.tsx index ead902766..c9cd48933 100644 --- a/src/renderer/src/pages/home/Navbar.tsx +++ b/src/renderer/src/pages/home/Navbar.tsx @@ -20,11 +20,11 @@ interface Props { setActiveTopic: (topic: Topic) => void } -const HeaderNavbar: FC = ({ activeAssistant, activeTopic, setActiveAssistant, setActiveTopic }) => { +const HeaderNavbar: FC = ({ activeAssistant, setActiveAssistant, setActiveTopic }) => { const { assistant, addTopic } = useAssistant(activeAssistant.id) const { t } = useTranslation() const { showAssistants, toggleShowAssistants } = useShowAssistants() - const { showTopics, toggleShowTopics } = useShowTopics() + const { showTopics } = useShowTopics() const { theme, toggleTheme } = useTheme() const onCreateAssistant = async () => { @@ -83,7 +83,8 @@ const HeaderNavbar: FC = ({ activeAssistant, activeTopic, setActiveAssist )} - {assistant.name} {!showTopics && toggleShowTopics()}>#{activeTopic.name}#} + {assistant.name} + {/* {!showTopics && toggleShowTopics()}>#{activeTopic.name}#} */} @@ -141,15 +142,15 @@ const ThemeSwitch = styled(Switch)` } ` -const HashTag = styled.span` - -webkit-app-region: no-drag; - color: var(--color-primary); - margin-left: 5px; - user-select: none; - cursor: pointer; - &:hover { - text-decoration: underline; - } -` +// const HashTag = styled.span` +// -webkit-app-region: no-drag; +// color: var(--color-primary); +// margin-left: 5px; +// user-select: none; +// cursor: pointer; +// &:hover { +// text-decoration: underline; +// } +// ` export default HeaderNavbar