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
feat: make shortcuts more prominent
thecodrr895c2ea34274
diff --git a/apps/web/src/components/navigation-menu/index.js b/apps/web/src/components/navigation-menu/index.jsindex 7f8095f68..385a145ed 100644--- a/apps/web/src/components/navigation-menu/index.js+++ b/apps/web/src/components/navigation-menu/index.js@@ -184,6 +184,7 @@ function NavigationMenu(props) {? Icon.Tag2: Icon.Topic}+ isShortcutselected={shouldSelectNavItem(location, pin)}onClick={() => {if (pin.type === "notebook") {diff --git a/apps/web/src/components/navigation-menu/navigation-item.js b/apps/web/src/components/navigation-menu/navigation-item.jsindex f83ce3e51..ebaa2fd7d 100644--- a/apps/web/src/components/navigation-menu/navigation-item.js+++ b/apps/web/src/components/navigation-menu/navigation-item.js@@ -3,9 +3,10 @@ import { Flex, Button, Text } from "rebass";import { useStore as useAppStore } from "../../stores/app-store";import { useOpenContextMenu } from "../../utils/useContextMenu";import useMobile from "../../utils/use-mobile";+import * as Icons from "../icons";function NavigationItem(props) {- const { icon: Icon, color, title, isLoading } = props;+ const { icon: Icon, color, title, isLoading, isShortcut } = props;const toggleSideMenu = useAppStore((store) => store.toggleSideMenu);const isMobile = useMobile();const openContextMenu = useOpenContextMenu();@@ -29,14 +30,22 @@ function NavigationItem(props) {<FlexjustifyContent={"flex-start"}alignItems="center"- //sx={{ position: "relative" }}+ sx={{ position: "relative" }}><Icon- size={18}+ size={15}sx={{ mr: 1 }}color={props.selected && !color ? "primary" : color || "icon"}rotate={isLoading}/>+ {isShortcut && (+ <Icons.Shortcut+ size={8}+ sx={{ position: "absolute", bottom: "-3px", left: "-6px" }}+ color={props.selected && !color ? "primary" : color || "icon"}+ />+ )}+<Textvariant="body"fontSize="subtitle"