A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: pinned item indicator
thecodrr77739a75a706
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.jsindex 20d6bbacf..cc8fbcb6d 100644--- a/apps/web/src/components/note/index.js+++ b/apps/web/src/components/note/index.js@@ -168,8 +168,11 @@ function Note(props) {}}}info={- <Flex flex="1 1 auto" justifyContent="space-between">+ <><Flex variant="rowCenter">+ {note.pinned && (+ <Icon.PinFilled color="primary" size={10} sx={{ mr: 1 }} />+ )}<TimeAgolive={false}style={{ fontSize: theme.fontSizes["subBody"] }}@@ -202,7 +205,7 @@ function Note(props) {CONFLICT</Text>)}- </Flex>+ </>}pinned={pinnable && note.pinned}menuItems={menuItems(note, props.context)}diff --git a/apps/web/src/components/notebook/index.js b/apps/web/src/components/notebook/index.jsindex c8812991a..11a22476d 100644--- a/apps/web/src/components/notebook/index.js+++ b/apps/web/src/components/notebook/index.js@@ -7,6 +7,7 @@ import { showEditNotebookDialog } from "../dialogs/addnotebookdialog";import { showDeleteConfirmation } from "../dialogs/confirm";import { showItemDeletedToast, showUnpinnedToast } from "../../common/toasts";import { db } from "../../common";+import * as Icon from "../icons";const pin = async (notebook, index) => {await store.pin(notebook, index);@@ -65,7 +66,6 @@ class Notebook extends React.Component {selectableitem={notebook}onClick={onClick}- unpin={() => pin(notebook, index)}title={notebook.title}body={notebook.description}subBody={@@ -96,6 +96,9 @@ class Notebook extends React.Component {}info={<Flex variant="rowCenter">+ {notebook.pinned && (+ <Icon.PinFilled color="primary" size={10} sx={{ mr: 1 }} />+ )}{new Date(notebook.dateCreated).toDateString().substring(4)}<Text as="span" mx={1}>•diff --git a/apps/web/yarn.lock b/apps/web/yarn.lockindex fcd0d1e89..710d63107 100644--- a/apps/web/yarn.lock+++ b/apps/web/yarn.lock@@ -8962,21 +8962,9 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559"integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==-notes-core@../notes-core/:- version "4.2.0"- dependencies:- fast-sort "^2.0.1"- fuzzysearch "^1.0.3"- jshashes "^1.0.8"- no-internet "^1.5.2"- qclone "^1.0.4"- quill-delta-to-html "^0.12.0"- quill-delta-to-markdown "https://github.com/streetwriters/quill-delta-to-markdown"- transfun "^1.0.2"-"notes-core@git+ssh://[email protected]:streetwriters/notesnook-core.git":- version "4.2.0"- resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#80dc84afe8780e591b8ec9b30a538567d34f1957"+ version "4.3.0"+ resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#52f3ce5dc6224d72e6d1610be591cbfca5b9c37f"dependencies:fast-sort "^2.0.1"fuzzysearch "^1.0.3"