mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 13:29:02 +08:00
chore: update hotkey and style
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user