Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: implement generic notes search

thecodrrb19aaaa94642
diff --git a/apps/web/src/views/Notes.js b/apps/web/src/views/Notes.js
index 25ece7634..4e011d0ef 100644
--- a/apps/web/src/views/Notes.js
+++ b/apps/web/src/views/Notes.js
@@ -16,12 +16,20 @@ const Notes = props => {
clearSelectedContext();
};
}, [clearSelectedContext]);
- console.log("refreshing notesssss", selectedNotes);
return (
<ListContainer
item={index => (
<Note index={index} pinnable={false} item={selectedNotes[index]} />
)}
+ term={props.term}
+ searchPlaceholder="Search notes"
+ searchParams={{
+ type: "notes",
+ items: selectedNotes,
+ item: (index, item) => (
+ <Note index={index} pinnable={false} item={item} />
+ )
+ }}
itemsLength={selectedNotes.length}
button={{
content: "Make a new note",