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: migrate note.colors to note.color
thecodrre8d6f11c90bc
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.jsindex 499e8712e..5af812538 100644--- a/apps/web/src/components/note/index.js+++ b/apps/web/src/components/note/index.js@@ -124,7 +124,7 @@ function Note(props) {const selectedNote = useStore((store) => store.selectedNote);const isOpened = selectedNote === note.id;const theme = useTheme();- const color = useMemo(() => COLORS[note.colors[0]], [note.colors]);+ const color = useMemo(() => COLORS[note.color], [note.color]);const notebook = useMemo(() => note.notebook && db.notebooks.notebook(note.notebook.id).data,[note.notebook]@@ -170,20 +170,6 @@ function Note(props) {info={<Flex flex="1 1 auto" justifyContent="space-between"><Flex variant="rowCenter">- {/* {note.colors.map((item, colorIndex) => (- <Box- key={item}- style={{- width: 13,- marginLeft: colorIndex ? -8 : 0,- marginRight: colorIndex === note.colors.length - 1 ? 5 : 0,- height: 13,- backgroundColor: COLORS[item],- borderRadius: 100,- }}- data-test-id={`note-${index}-colors-${item}`}- />- ))} */}<TimeAgolive={false}style={{ fontSize: theme.fontSizes["subBody"] }}diff --git a/apps/web/yarn.lock b/apps/web/yarn.lockindex 25da2f724..b73eaf497 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 "3.2.2"- 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 "3.2.2"- resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#4490471fd41d5fbaffb24a29deaba61697f0fb0f"+ version "4.0.0"+ resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#202bfdcc24c347455857c0a8b5e804df68a8b9e2"dependencies:fast-sort "^2.0.1"fuzzysearch "^1.0.3"