From 9434f9e2e4c31eaaf4a37bff03bee0a6bf720f52 Mon Sep 17 00:00:00 2001 From: Abhinav-Developer-23 <145282438+Abhinav-Developer-23@users.noreply.github.com> Date: Tue, 17 Oct 2023 11:57:02 +0530 Subject: [PATCH] fix: support mailto link fix (#571) --- apps/marketing/src/components/(marketing)/footer.tsx | 2 +- .../src/components/(marketing)/mobile-navigation.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/marketing/src/components/(marketing)/footer.tsx b/apps/marketing/src/components/(marketing)/footer.tsx index 11d368c22..17cf771df 100644 --- a/apps/marketing/src/components/(marketing)/footer.tsx +++ b/apps/marketing/src/components/(marketing)/footer.tsx @@ -28,7 +28,7 @@ const FOOTER_LINKS = [ { href: '/open', text: 'Open' }, { href: 'https://shop.documenso.com', text: 'Shop', target: '_blank' }, { href: 'https://status.documenso.com', text: 'Status', target: '_blank' }, - { href: 'mailto:support@documenso.com', text: 'Support' }, + { href: 'mailto:support@documenso.com', text: 'Support', target: '_blank' }, { href: '/privacy', text: 'Privacy' }, ]; diff --git a/apps/marketing/src/components/(marketing)/mobile-navigation.tsx b/apps/marketing/src/components/(marketing)/mobile-navigation.tsx index a1897ce58..6096556a6 100644 --- a/apps/marketing/src/components/(marketing)/mobile-navigation.tsx +++ b/apps/marketing/src/components/(marketing)/mobile-navigation.tsx @@ -39,6 +39,7 @@ export const MENU_NAVIGATION_LINKS = [ { href: 'mailto:support@documenso.com', text: 'Support', + target: '_blank', }, { href: '/privacy', @@ -78,7 +79,7 @@ export const MobileNavigation = ({ isMenuOpen, onMenuOpenChange }: MobileNavigat staggerChildren: 0.03, }} > - {MENU_NAVIGATION_LINKS.map(({ href, text }) => ( + {MENU_NAVIGATION_LINKS.map(({ href, text, target }) => ( handleMenuItemClick()} + target={target} > {text}