feat: init quick search

This commit is contained in:
JimmFly
2022-12-08 15:09:08 +08:00
parent f160b68a19
commit 0d041aa5e8
4 changed files with 27 additions and 6 deletions
@@ -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');