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
rename pin to menu to add shortcut to menu
ammarahm-ed3dcdcd9ae454
diff --git a/apps/mobile/src/components/Menu/TagsSection.js b/apps/mobile/src/components/Menu/TagsSection.jsindex 308a4b895..ef8ffc7ab 100644--- a/apps/mobile/src/components/Menu/TagsSection.js+++ b/apps/mobile/src/components/Menu/TagsSection.js@@ -95,14 +95,13 @@ export const TagsSection = () => {paddingHorizontal: '10%',}}><Heading style={{marginBottom: 2.5}} size={SIZE.sm}>- Your Pins+ Shortcuts</Heading><Paragraphstyle={{textAlign: 'center'}}color={colors.icon}size={SIZE.xs}>- You have not pinned anything yet. You can pin notebooks, topics- and tags here.+ You can add shortcuts to notebooks, topics and tags here.</Paragraph></View>}@@ -123,14 +122,11 @@ const PinItem = ({item, index, onPress}) => {const color = headerTextState?.id === item.id ? colors.accent : colors.pri;const onHeaderStateChange = (event) => {-- if (event?.id === item.id) {- setHeaderTextState(event);- } else {- setHeaderTextState(null);- }--+ if (event?.id === item.id) {+ setHeaderTextState(event);+ } else {+ setHeaderTextState(null);+ }};useEffect(() => {diff --git a/apps/mobile/src/components/NotebookItem/index.js b/apps/mobile/src/components/NotebookItem/index.jsindex fe26713ee..2ba8c59fe 100644--- a/apps/mobile/src/components/NotebookItem/index.js+++ b/apps/mobile/src/components/NotebookItem/index.js@@ -28,8 +28,8 @@ export const NotebookItem = ({let columnItems = isTrash? []: item.type === 'topic'- ? ['Pin to Menu', 'Unpin from Menu']- : ['Pin', 'Pin to Menu', 'Unpin from Menu'];+ ? ['Add Shortcut to Menu', 'Remove Shortcut from Menu']+ : ['Pin', 'Add Shortcut to Menu', 'Remove Shortcut from Menu'];ActionSheetEvent(item, false, false, rowItems, columnItems, {notebookID: notebookID,diff --git a/apps/mobile/src/components/SelectionWrapper/index.js b/apps/mobile/src/components/SelectionWrapper/index.jsindex 7e2b6a360..9cf11c2d8 100644--- a/apps/mobile/src/components/SelectionWrapper/index.js+++ b/apps/mobile/src/components/SelectionWrapper/index.js@@ -154,8 +154,8 @@ const ActionStrip = ({note, setActionStrip}) => {},{- title: isPinnedToMenu ? 'Unpin from Menu' : 'Pin to Menu',- icon: isPinnedToMenu ? 'tag-off-outline' : 'tag-outline',+ title: isPinnedToMenu ? 'Remove Shortcut from Menu' : 'Add Shortcut to Menu',+ icon: isPinnedToMenu ? 'link-variant-remove' : 'link-variant',onPress: async () => {try {if (isPinnedToMenu) {diff --git a/apps/mobile/src/components/TagItem/index.js b/apps/mobile/src/components/TagItem/index.jsindex 86a1db6aa..662b15484 100644--- a/apps/mobile/src/components/TagItem/index.js+++ b/apps/mobile/src/components/TagItem/index.js@@ -78,7 +78,7 @@ const TagItem = ({item, index}) => {size={SIZE.xl}onPress={() => {let rowItems = [];- let columnItems = ['Pin to Menu', 'Unpin from Menu'];+ let columnItems = ['Add Shortcut to Menu', 'Remove Shortcut from Menu'];ActionSheetEvent(item, false, false, rowItems, columnItems);}}testID={notesnook.ids.tag.menu}