fix(ui): sélection groupée dans la boîte de réception
Permet de cocher plusieurs notes, les déplacer vers un carnet ou les envoyer à la corbeille, et rend la carte mentale plus lisible. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,6 +17,7 @@ type MoveToNotebookPickerProps = {
|
||||
children: React.ReactElement
|
||||
align?: 'start' | 'end'
|
||||
preferDropUp?: boolean
|
||||
showGeneralNotes?: boolean
|
||||
}
|
||||
|
||||
export function MoveToNotebookPicker({
|
||||
@@ -26,6 +27,7 @@ export function MoveToNotebookPicker({
|
||||
children,
|
||||
align = 'end',
|
||||
preferDropUp = false,
|
||||
showGeneralNotes = true,
|
||||
}: MoveToNotebookPickerProps) {
|
||||
const { t } = useLanguage()
|
||||
const [open, setOpen] = useState(false)
|
||||
@@ -91,7 +93,7 @@ export function MoveToNotebookPicker({
|
||||
selectedId={currentNotebookId}
|
||||
onSelect={(id) => handleSelect(id)}
|
||||
onClose={close}
|
||||
showGeneralNotes
|
||||
showGeneralNotes={showGeneralNotes}
|
||||
generalNotesLabel={t('notebookSuggestion.generalNotes') || 'Notes générales'}
|
||||
onSelectGeneralNotes={() => handleSelect(null)}
|
||||
searchPlaceholder={t('notebookSuggestion.filterNotebooks') || 'Filtrer les carnets…'}
|
||||
|
||||
Reference in New Issue
Block a user