mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 13:29:02 +08:00
feat: init quick search content
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import React from 'react';
|
||||
import { useEditor } from '@/providers/editor-provider';
|
||||
import JumpTo from './jumpTo';
|
||||
|
||||
const Result = () => {
|
||||
const { editor, mode, setMode } = useEditor();
|
||||
console.log(editor?.page);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div>Jump to</div>
|
||||
<div>All pages</div>
|
||||
<div>Favorites</div>
|
||||
<div>Trash</div>
|
||||
<JumpTo />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
|
||||
const JumpTo = () => {
|
||||
return (
|
||||
<div>
|
||||
<div>Jump to</div>
|
||||
<div>All pages</div>
|
||||
<div>Favorites</div>
|
||||
<div>Trash</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default JumpTo;
|
||||
@@ -0,0 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
const SearchResult = () => {
|
||||
return <div>searchResult</div>;
|
||||
};
|
||||
|
||||
export default SearchResult;
|
||||
Reference in New Issue
Block a user