feat: update tags/color logic according to notes-core

This commit is contained in:
thecodrr
2020-03-22 11:29:57 +05:00
parent 6c10c94721
commit d103674be2
3 changed files with 4 additions and 4 deletions

View File

@@ -185,7 +185,7 @@ function App() {
color: COLORS[color.title],
title: toTitleCase(color.title),
icon: Icon.Circle,
count: color.count
count: color.noteIds.length
}}
/>
);

View File

@@ -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", {

View File

@@ -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"