mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 22:09:08 +08:00
feat: init quick search
This commit is contained in:
@@ -8,12 +8,21 @@ import {
|
||||
StyledSubListItem,
|
||||
} from './style';
|
||||
import { Arrow } from './icons';
|
||||
import { useModal } from '@/providers/global-modal-provider';
|
||||
|
||||
export const WorkSpaceSliderBar = () => {
|
||||
const { shortcutsModalHandler } = useModal();
|
||||
const [show, setShow] = useState(false);
|
||||
return (
|
||||
<>
|
||||
<StyledSliderBar show={show}>
|
||||
<StyledListItem>Quick search</StyledListItem>
|
||||
<StyledListItem
|
||||
onClick={() => {
|
||||
shortcutsModalHandler(true);
|
||||
}}
|
||||
>
|
||||
Quick search
|
||||
</StyledListItem>
|
||||
<StyledListItem
|
||||
onClick={() => {
|
||||
Router.push('/all-page');
|
||||
|
||||
Reference in New Issue
Block a user