From 50834be4dbefaf27cf1d17c9fed91ebe77ba710f Mon Sep 17 00:00:00 2001 From: Vikrant Gupta Date: Sun, 11 Feb 2024 23:55:54 +0530 Subject: [PATCH] fix: update the extend trial from default mailto client to notification panel (#4514) --- .../pages/WorkspaceLocked/WorkspaceLocked.tsx | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx b/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx index eab934c69c..4dcc055235 100644 --- a/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx +++ b/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx @@ -87,21 +87,18 @@ export default function WorkspaceBlocked(): JSX.Element { const handleExtendTrial = (): void => { trackEvent('Workspace Blocked: User Clicked Extend Trial'); - const recipient = 'cloud-support@signoz.io'; - const subject = 'Extend SigNoz Cloud Trial'; - const body = `I'd like to request an extension for SigNoz Cloud for my account. Please find my account details below - - SigNoz URL: - Admin Email: - `; - - // Create the mailto link - const mailtoLink = `mailto:${recipient}?subject=${encodeURIComponent( - subject, - )}&body=${encodeURIComponent(body)}`; - - // Open the default email client - window.location.href = mailtoLink; + notifications.info({ + message: 'Extend Trial', + description: ( + + If you have a specific reason why you were not able to finish your PoC in + the trial period, please write to us on + cloud-support@signoz.io + with the reason. Sometimes we can extend trial by a few days on a case by + case basis + + ), + }); }; return ( @@ -152,7 +149,7 @@ export default function WorkspaceBlocked(): JSX.Element {
Got Questions? - Contact Us + Contact Us