mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-15 06:46:00 +08:00
chore: remove slack connect and call help (#6044)
* chore: remove slack connect and call help
This commit is contained in:
parent
6e3141a4ce
commit
7a125e31ec
@ -10,8 +10,6 @@ import useLicense from 'hooks/useLicense';
|
|||||||
import { useNotifications } from 'hooks/useNotifications';
|
import { useNotifications } from 'hooks/useNotifications';
|
||||||
import {
|
import {
|
||||||
Book,
|
Book,
|
||||||
Cable,
|
|
||||||
Calendar,
|
|
||||||
CreditCard,
|
CreditCard,
|
||||||
Github,
|
Github,
|
||||||
MessageSquare,
|
MessageSquare,
|
||||||
@ -78,22 +76,6 @@ const supportChannels = [
|
|||||||
url: '',
|
url: '',
|
||||||
btnText: 'Launch chat',
|
btnText: 'Launch chat',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: 'schedule_call',
|
|
||||||
name: 'Schedule a call',
|
|
||||||
icon: <Calendar />,
|
|
||||||
title: 'Schedule a call with the founders.',
|
|
||||||
url: 'https://calendly.com/vishal-signoz/30min',
|
|
||||||
btnText: 'Schedule call',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'slack_connect',
|
|
||||||
name: 'Slack Connect',
|
|
||||||
icon: <Cable />,
|
|
||||||
title: 'Get a dedicated support channel for your team.',
|
|
||||||
url: '',
|
|
||||||
btnText: 'Request Slack connect',
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function Support(): JSX.Element {
|
export default function Support(): JSX.Element {
|
||||||
@ -122,20 +104,6 @@ export default function Support(): JSX.Element {
|
|||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handleSlackConnectRequest = (): void => {
|
|
||||||
const recipient = 'support@signoz.io';
|
|
||||||
const subject = 'Slack Connect Request';
|
|
||||||
const body = `I'd like to request a dedicated Slack Connect channel for me and my team. Users (emails) to include besides mine:`;
|
|
||||||
|
|
||||||
// Create the mailto link
|
|
||||||
const mailtoLink = `mailto:${recipient}?subject=${encodeURIComponent(
|
|
||||||
subject,
|
|
||||||
)}&body=${encodeURIComponent(body)}`;
|
|
||||||
|
|
||||||
// Open the default email client
|
|
||||||
window.location.href = mailtoLink;
|
|
||||||
};
|
|
||||||
|
|
||||||
const isPremiumChatSupportEnabled =
|
const isPremiumChatSupportEnabled =
|
||||||
useFeatureFlags(FeatureKeys.PREMIUM_SUPPORT)?.active || false;
|
useFeatureFlags(FeatureKeys.PREMIUM_SUPPORT)?.active || false;
|
||||||
|
|
||||||
@ -214,15 +182,11 @@ export default function Support(): JSX.Element {
|
|||||||
case channelsMap.documentation:
|
case channelsMap.documentation:
|
||||||
case channelsMap.github:
|
case channelsMap.github:
|
||||||
case channelsMap.slack_community:
|
case channelsMap.slack_community:
|
||||||
case channelsMap.schedule_call:
|
|
||||||
handleChannelWithRedirects(channel.url);
|
handleChannelWithRedirects(channel.url);
|
||||||
break;
|
break;
|
||||||
case channelsMap.chat:
|
case channelsMap.chat:
|
||||||
handleChat();
|
handleChat();
|
||||||
break;
|
break;
|
||||||
case channelsMap.slack_connect:
|
|
||||||
handleSlackConnectRequest();
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
handleChannelWithRedirects('https://signoz.io/slack');
|
handleChannelWithRedirects('https://signoz.io/slack');
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user