mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
feat: add quick search UI
This commit is contained in:
@@ -11,14 +11,14 @@ import { Arrow } from './icons';
|
||||
import { useModal } from '@/providers/global-modal-provider';
|
||||
|
||||
export const WorkSpaceSliderBar = () => {
|
||||
const { shortcutsModalHandler } = useModal();
|
||||
const { triggerQuickSearchModal } = useModal();
|
||||
const [show, setShow] = useState(false);
|
||||
return (
|
||||
<>
|
||||
<StyledSliderBar show={show}>
|
||||
<StyledListItem
|
||||
onClick={() => {
|
||||
shortcutsModalHandler(true);
|
||||
triggerQuickSearchModal(true);
|
||||
}}
|
||||
>
|
||||
Quick search
|
||||
|
||||
Reference in New Issue
Block a user