From 72b4a1fc4e392599e31368cb77daa8c93de065eb Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Wed, 13 Sep 2023 11:55:58 +0530 Subject: [PATCH] fix: typo in "twitter link" and "invite to hoppscotch" action (#3346) --- .../src/components/app/spotlight/Entry.vue | 9 +++++---- .../src/platform/std/ui/supportOptionsItem.ts | 14 ++------------ 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/packages/hoppscotch-common/src/components/app/spotlight/Entry.vue b/packages/hoppscotch-common/src/components/app/spotlight/Entry.vue index 8473e192..17423f12 100644 --- a/packages/hoppscotch-common/src/components/app/spotlight/Entry.vue +++ b/packages/hoppscotch-common/src/components/app/spotlight/Entry.vue @@ -80,10 +80,11 @@ const props = defineProps<{ active: boolean }>() -const formattedShortcutKeys = computed(() => - props.entry.meta?.keyboardShortcut?.map((key) => { - return SPECIAL_KEY_CHARS[key] ?? capitalize(key) - }) +const formattedShortcutKeys = computed( + () => + props.entry.meta?.keyboardShortcut?.map((key) => { + return SPECIAL_KEY_CHARS[key] ?? capitalize(key) + }) ) const emit = defineEmits<{ diff --git a/packages/hoppscotch-common/src/platform/std/ui/supportOptionsItem.ts b/packages/hoppscotch-common/src/platform/std/ui/supportOptionsItem.ts index b8154a36..5299af58 100644 --- a/packages/hoppscotch-common/src/platform/std/ui/supportOptionsItem.ts +++ b/packages/hoppscotch-common/src/platform/std/ui/supportOptionsItem.ts @@ -72,7 +72,7 @@ export const twitter: HoppSupportOptionsMenuItem = { icon: IconTwitter, action: { type: "link", - href: "https://hoppscotch.io/discord", + href: "https://hoppscotch.io/twitter", }, } @@ -84,17 +84,7 @@ export const invite: HoppSupportOptionsMenuItem = { action: { type: "custom", do() { - if (navigator.share) { - navigator - .share({ - title: "Hoppscotch", - text: "Hoppscotch • Open source API development ecosystem - Helps you create requests faster, saving precious time on development.", - url: "https://hoppscotch.io", - }) - .catch(console.error) - } else { - // fallback - } + invokeAction("modals.share.toggle") }, }, }