diff --git a/memento-note/components/notes-list-views.tsx b/memento-note/components/notes-list-views.tsx index 7677e86..3fde893 100644 --- a/memento-note/components/notes-list-views.tsx +++ b/memento-note/components/notes-list-views.tsx @@ -349,6 +349,7 @@ export function NotesListViews({ onDeleteNote={onDeleteNote} onMoveToNotebook={onMoveToNotebook} onNoteIllustrationGenerated={onNoteIllustrationGenerated} + onOpenHistory={onOpenHistory} onGridReorder={onGridReorder} pinnedLabel={t('notes.pinned')} /> @@ -505,6 +506,7 @@ type GridCardSharedProps = { onMoveToNotebook?: (note: Note, notebookId: string | null) => void | Promise onNoteIllustrationGenerated?: (noteId: string) => void | Promise onNoteIllustrationDeleted?: (noteId: string) => void | Promise + onOpenHistory?: (note: Note) => void isOverlay?: boolean } @@ -713,6 +715,7 @@ const GridCard = memo(function GridCard({ onMoveToNotebook, onNoteIllustrationGenerated, onNoteIllustrationDeleted, + onOpenHistory, isOverlay = false, }: GridCardSharedProps) { const router = useRouter() @@ -758,6 +761,11 @@ const GridCard = memo(function GridCard({ )} + {note.historyEnabled && ( +
+ +
+ )}
@@ -810,6 +818,22 @@ const GridCard = memo(function GridCard({ )} + {onOpenHistory && ( + + )}