mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 10:29:01 +08:00
fix: update the extend trial from default mailto client to notification panel (#4514)
This commit is contained in:
parent
260d21afd0
commit
50834be4db
@ -87,21 +87,18 @@ export default function WorkspaceBlocked(): JSX.Element {
|
|||||||
const handleExtendTrial = (): void => {
|
const handleExtendTrial = (): void => {
|
||||||
trackEvent('Workspace Blocked: User Clicked Extend Trial');
|
trackEvent('Workspace Blocked: User Clicked Extend Trial');
|
||||||
|
|
||||||
const recipient = 'cloud-support@signoz.io';
|
notifications.info({
|
||||||
const subject = 'Extend SigNoz Cloud Trial';
|
message: 'Extend Trial',
|
||||||
const body = `I'd like to request an extension for SigNoz Cloud for my account. Please find my account details below
|
description: (
|
||||||
|
<Typography>
|
||||||
SigNoz URL:
|
If you have a specific reason why you were not able to finish your PoC in
|
||||||
Admin Email:
|
the trial period, please write to us on
|
||||||
`;
|
<a href="mailto:cloud-support@signoz.io"> cloud-support@signoz.io </a>
|
||||||
|
with the reason. Sometimes we can extend trial by a few days on a case by
|
||||||
// Create the mailto link
|
case basis
|
||||||
const mailtoLink = `mailto:${recipient}?subject=${encodeURIComponent(
|
</Typography>
|
||||||
subject,
|
),
|
||||||
)}&body=${encodeURIComponent(body)}`;
|
});
|
||||||
|
|
||||||
// Open the default email client
|
|
||||||
window.location.href = mailtoLink;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -152,7 +149,7 @@ export default function WorkspaceBlocked(): JSX.Element {
|
|||||||
<div className="contact-us">
|
<div className="contact-us">
|
||||||
Got Questions?
|
Got Questions?
|
||||||
<span>
|
<span>
|
||||||
<a href="mailto:support@signoz.io"> Contact Us </a>
|
<a href="mailto:cloud-support@signoz.io"> Contact Us </a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user