1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Add Counters on All notes && Starred notes

This commit is contained in:
Paul Rosset
2017-11-02 17:03:59 +00:00
parent c8256bea3a
commit 875c451221
3 changed files with 8 additions and 3 deletions

View File

@@ -72,6 +72,8 @@ class SideNav extends React.Component {
isTrashedActive={isTrashedActive}
handleStarredButtonClick={(e) => this.handleStarredButtonClick(e)}
handleTrashedButtonClick={(e) => this.handleTrashedButtonClick(e)}
counterTotalNote={data.noteMap._map.size === 0 ? null : data.noteMap._map.size}
counterStarredNote={data.starredSet._set.size === 0 ? null : data.starredSet._set.size}
counterDelNote={data.trashedSet._set.size === 0 ? null : data.trashedSet._set.size}
/>