chore: update hotkey and style

This commit is contained in:
JimmFly
2022-12-12 14:08:09 +08:00
parent a511632d1c
commit ac91c0eac0
5 changed files with 50 additions and 30 deletions
@@ -6,19 +6,30 @@ import {
} from '@blocksuite/icons';
import Link from 'next/link';
import { StyledJumpTo } from '../style';
import { useModal } from '@/providers/global-modal-provider';
const JumpTo = () => {
const { triggerQuickSearchModal } = useModal();
return (
<StyledJumpTo>
<strong>Jump to</strong>
<Link href={{ pathname: '/all-page', query: { name: 'test' } }}>
<Link
href={{ pathname: '/page-list/all' }}
onClick={() => triggerQuickSearchModal()}
>
<MiddleAllPagesIcon width={20} height={20} />
<span> All pages</span>
</Link>
<Link href={'/'}>
<Link
href={{ pathname: '/page-list/favorite' }}
onClick={() => triggerQuickSearchModal()}
>
<MiddleFavouritesIcon width={20} height={20} />
<span> Favourites</span>
</Link>
<Link href={'/'}>
<Link
href={{ pathname: '/page-list/trash' }}
onClick={() => triggerQuickSearchModal()}
>
<MiddleTrashIcon width={20} height={20} />
<span> Trash</span>
</Link>