A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: special icons for readonly and trash preview tabs
Abdullah Attad869a6947703
diff --git a/apps/web/src/components/editor/action-bar.tsx b/apps/web/src/components/editor/action-bar.tsxindex 608ec90a5..ff4bb9be1 100644--- a/apps/web/src/components/editor/action-bar.tsx+++ b/apps/web/src/components/editor/action-bar.tsx@@ -31,8 +31,10 @@ import {Note,Pin,Properties,+ Readonly,Search,TableOfContents,+ Trash,Unlock} from "../icons";import { ScrollContainer } from "@notesnook/ui";@@ -350,7 +352,15 @@ function Tab(props: TabProps) {onCloseToTheLeft,onPin} = props;- const Icon = isLocked ? (type === "locked" ? Lock : Unlock) : Note;+ const Icon = isLocked+ ? type === "locked"+ ? Lock+ : Unlock+ : type === "readonly"+ ? Readonly+ : type === "deleted"+ ? Trash+ : Note;const { attributes, listeners, setNodeRef, transform, transition, active } =useSortable({ id });