mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-25 19:15:18 +02:00
chore: clean up comments in editor and composer
This commit is contained in:
parent
c78f0e78aa
commit
9e058e1329
2 changed files with 2 additions and 2 deletions
|
|
@ -117,7 +117,7 @@ export const InlineMentionEditor = forwardRef<InlineMentionEditorRef, InlineMent
|
||||||
}
|
}
|
||||||
}, [initialDocuments]);
|
}, [initialDocuments]);
|
||||||
|
|
||||||
// Seed editor with initialText on mount (e.g. clipboard content from Electron tray)
|
// Seed editor with initialText on mount
|
||||||
const initialTextAppliedRef = useRef(false);
|
const initialTextAppliedRef = useRef(false);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!initialText || initialTextAppliedRef.current || !editorRef.current) return;
|
if (!initialText || initialTextAppliedRef.current || !editorRef.current) return;
|
||||||
|
|
|
||||||
|
|
@ -314,7 +314,7 @@ const Composer: FC = () => {
|
||||||
const composerRuntime = useComposerRuntime();
|
const composerRuntime = useComposerRuntime();
|
||||||
const hasAutoFocusedRef = useRef(false);
|
const hasAutoFocusedRef = useRef(false);
|
||||||
|
|
||||||
// Clipboard content from Electron tray (pre-filled into composer)
|
// Clipboard content
|
||||||
const [clipboardText, setClipboardText] = useState<string | undefined>();
|
const [clipboardText, setClipboardText] = useState<string | undefined>();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const api = (window as { electronAPI?: { getClipboardContent?: () => Promise<string> } }).electronAPI;
|
const api = (window as { electronAPI?: { getClipboardContent?: () => Promise<string> } }).electronAPI;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue