mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-02 20:21:19 +02:00
feat: update tags/color logic according to notes-core
This commit is contained in:
@@ -185,7 +185,7 @@ function App() {
|
||||
color: COLORS[color.title],
|
||||
title: toTitleCase(color.title),
|
||||
icon: Icon.Circle,
|
||||
count: color.count
|
||||
count: color.noteIds.length
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -26,14 +26,14 @@ const Tags = props => {
|
||||
type="tags"
|
||||
items={tags}
|
||||
item={(index, item) => {
|
||||
const { title, count } = item;
|
||||
const { title, noteIds } = item;
|
||||
return (
|
||||
<ListItem
|
||||
item={item}
|
||||
selectable={false}
|
||||
index={index}
|
||||
title={<TagNode title={title} />}
|
||||
info={`${count} notes`}
|
||||
info={`${noteIds.length} notes`}
|
||||
onClick={() => {
|
||||
setSelectedContext({ type: "tag", value: title });
|
||||
props.navigator.navigate("notes", {
|
||||
|
||||
@@ -6905,7 +6905,7 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:
|
||||
|
||||
"notes-core@git+ssh://git@github.com:thecodrr/notes-core.git":
|
||||
version "1.2.0"
|
||||
resolved "git+ssh://git@github.com:thecodrr/notes-core.git#414d6c3a5767e5ea396f23e293b8524bcd1f4fdb"
|
||||
resolved "git+ssh://git@github.com:thecodrr/notes-core.git#0f33ad84b60f4805d2adb9a65f11dd4c2690c315"
|
||||
dependencies:
|
||||
fast-sort "^2.0.1"
|
||||
fuzzysearch "^1.0.3"
|
||||
|
||||
Reference in New Issue
Block a user