feat: add tooltip for the quick search of left sidebar

This commit is contained in:
tzhangchi
2022-12-17 15:55:51 +08:00
parent c6a544945b
commit eb514fdb1e
@@ -69,13 +69,15 @@ export const WorkSpaceSliderBar = () => {
return (
<>
<StyledSliderBar show={show}>
<StyledListItem
onClick={() => {
triggerQuickSearchModal();
}}
>
<SearchIcon /> Quick search
</StyledListItem>
<Tooltip content="Search and quickly jump to a page" placement="right">
<StyledListItem
onClick={() => {
triggerQuickSearchModal();
}}
>
<SearchIcon /> Quick search
</StyledListItem>
</Tooltip>
<Link href={{ pathname: '/page-list/all' }}>
<StyledListItem active={router.pathname === '/page-list/all'}>
<AllPagesIcon /> All pages