feat: untagged notes smart view

This commit is contained in:
Mo
2022-02-27 17:46:55 -06:00
parent 16fc3eb521
commit 60bddd0f41
4 changed files with 17 additions and 11 deletions

View File

@@ -26,6 +26,7 @@ import {
EyeIcon,
EyeOffIcon,
HashtagIcon,
HashtagOffIcon,
HelpIcon,
HistoryIcon,
InfoIcon,
@@ -85,6 +86,7 @@ const ICONS = {
'chevron-right': ChevronRightIcon,
'cloud-off': CloudOffIcon,
'eye-off': EyeOffIcon,
'hashtag-off': HashtagOffIcon,
'link-off': LinkOffIcon,
'list-bulleted': ListBulleted,
'lock-filled': LockFilledIcon,
@@ -92,8 +94,8 @@ const ICONS = {
'menu-arrow-down': MenuArrowDownIcon,
'menu-arrow-right': MenuArrowRight,
'menu-close': MenuCloseIcon,
'pencil-off': PencilOffIcon,
'pencil-filled': PencilFilledIcon,
'pencil-off': PencilOffIcon,
'pin-filled': PinFilledIcon,
'plain-text': PlainTextIcon,
'premium-feature': PremiumFeatureIcon,

View File

@@ -31,6 +31,10 @@ const smartViewIconType = (view: SmartView): IconType => {
if (view.uuid === SystemViewId.TrashedNotes) {
return 'trash';
}
if (view.uuid === SystemViewId.UntaggedNotes) {
return 'hashtag-off';
}
return 'hashtag';
};