1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Add counter on deleted notes

This commit is contained in:
Paul Rosset
2017-11-01 17:54:35 +00:00
parent 7d97784a58
commit c8256bea3a
3 changed files with 6 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ import styles from './SideNavFilter.styl'
*/
const SideNavFilter = ({
isFolded, isHomeActive, handleAllNotesButtonClick,
isStarredActive, handleStarredButtonClick, isTrashedActive, handleTrashedButtonClick
isStarredActive, handleStarredButtonClick, isTrashedActive, handleTrashedButtonClick, counterDelNote
}) => (
<div styleName={isFolded ? 'menu--folded' : 'menu'}>
<button styleName={isHomeActive ? 'menu-button--active' : 'menu-button'}
@@ -35,6 +35,7 @@ const SideNavFilter = ({
>
<i className='fa fa-trash fa-fw' />
<span styleName='menu-button-label'>Trash</span>
<span styleName='counter-notes-trash'>{counterDelNote}</span>
</button>
</div>
)