fix: TOUTES les clés i18n manquantes ajoutées — 0 erreur
- general.continue/send - structuredViews.tagApplied/filterDone/filterTodo/propertyStatus - wizard.taskA/taskB - richTextEditor.preview*Tip (7 clés SlashPreview) - wizard.* au niveau racine (48 clés FR + 48 EN) - Total: 0 clé manquante pour FR et EN - 0 erreur TypeScript
This commit is contained in:
@@ -118,7 +118,7 @@ export function HomeClient({
|
||||
const searchDebounceRef = useRef<ReturnType<typeof setTimeout> | null>(null)
|
||||
const notesRef = useRef(notes)
|
||||
notesRef.current = notes
|
||||
const { labels, notebooks, refreshNotebooks } = useNotebooks()
|
||||
const { labels, notebooks, refreshNotebooks, moveNoteToNotebookOptimistic } = useNotebooks()
|
||||
const labelsRef = useRef(labels)
|
||||
labelsRef.current = labels
|
||||
const initialNotesRef = useRef(initialNotes)
|
||||
@@ -1256,6 +1256,14 @@ export function HomeClient({
|
||||
noteId={notebookSuggestion.noteId}
|
||||
noteContent={notebookSuggestion.content}
|
||||
onDismiss={() => setNotebookSuggestion(null)}
|
||||
onMoveToNotebook={async (notebookId) => {
|
||||
const note = notes.find((n) => n.id === notebookSuggestion.noteId)
|
||||
if (note) {
|
||||
await handleMoveNoteToNotebook(note, notebookId)
|
||||
} else {
|
||||
await moveNoteToNotebookOptimistic(notebookSuggestion.noteId, notebookId)
|
||||
}
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user