Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: fixed icon problem for trash and favorites

alihamuh30a1f151dbf7
diff --git a/apps/web/src/components/listview/index.js b/apps/web/src/components/listview/index.js
index b1e067157..41a756ee4 100644
--- a/apps/web/src/components/listview/index.js
+++ b/apps/web/src/components/listview/index.js
@@ -79,7 +79,11 @@ function ListView({ type, getItems, menu, button }) {
color="#9b9b9b"
flexDirection="column"
>
- <Icon.Star size={72} strokeWidth={1.5} />
+ {type == "Favorites" ? (
+ <Icon.Star size={72} strokeWidth={1.5} />
+ ) : (
+ <Icon.Trash size={72} strokeWidth={1.5} />
+ )}
<Text variant="title">You have no {type}.</Text>
</Flex>
)}
diff --git a/apps/web/src/views/Favorites.js b/apps/web/src/views/Favorites.js
index a238b3be4..c344278bc 100644
--- a/apps/web/src/views/Favorites.js
+++ b/apps/web/src/views/Favorites.js
@@ -12,7 +12,6 @@ const menuItems = item => [
let itemType = item.type[0] + item.type.substring(1);
showSnack(itemType + " Unfavorited!", Icon.Check);
ev.emit(`refreshFavorites`);
- //added favorite and deleted testeding
})
},
{