Skip to content

Commit

Permalink
feat: remove hashtag title
Browse files Browse the repository at this point in the history
  • Loading branch information
kangfenmao committed Sep 4, 2024
1 parent 7f5be3a commit e6e1502
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/renderer/src/pages/home/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ interface Props {
setActiveTopic: (topic: Topic) => void
}

const HeaderNavbar: FC<Props> = ({ activeAssistant, activeTopic, setActiveAssistant, setActiveTopic }) => {
const HeaderNavbar: FC<Props> = ({ 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 () => {
Expand Down Expand Up @@ -83,7 +83,8 @@ const HeaderNavbar: FC<Props> = ({ activeAssistant, activeTopic, setActiveAssist
</NewButton>
)}
<TitleText>
{assistant.name} {!showTopics && <HashTag onClick={() => toggleShowTopics()}>#{activeTopic.name}#</HashTag>}
{assistant.name}
{/* {!showTopics && <HashTag onClick={() => toggleShowTopics()}>#{activeTopic.name}#</HashTag>} */}
</TitleText>
</HStack>
<HStack alignItems="center">
Expand Down Expand Up @@ -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

0 comments on commit e6e1502

Please sign in to comment.