add note page

This commit is contained in:
Ren Amamiya
2023-07-04 15:40:18 +07:00
parent a30cf66c2e
commit 6590ea29e2
11 changed files with 99 additions and 134 deletions

View File

@@ -81,12 +81,7 @@ export function NoteMetadata({
});
const openThread = (thread: string) => {
const selection = window.getSelection();
if (selection.toString().length === 0) {
block.mutate({ kind: 2, title: 'Thread', content: thread });
} else {
event.stopPropagation();
}
block.mutate({ kind: 2, title: 'Thread', content: thread });
};
if (status === 'loading') {