chore: update trial end workspace event (#6088)

This commit is contained in:
Vishal Sharma 2024-09-27 18:20:17 +05:30 committed by GitHub
parent 717545e14c
commit 4c95df44d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,20 +55,22 @@ export default function WorkspaceBlocked(): JSX.Element {
} = useLicense(); } = useLicense();
useEffect((): void => { useEffect((): void => {
logEvent('Trial: Blocker Screen Viewed', {}); logEvent('Workspace Blocked: Screen Viewed', {});
}, []); }, []);
const handleContactUsClick = (): void => { const handleContactUsClick = (): void => {
logEvent('Trial: Contact Us CTA Clicked', {}); logEvent('Workspace Blocked: Contact Us Clicked', {});
}; };
const handleTabClick = (key: string): void => { const handleTabClick = (key: string): void => {
logEvent('Trial: Blocked Screen Tabs Clicked', { tabKey: key }); logEvent('Workspace Blocked: Screen Tabs Clicked', { tabKey: key });
}; };
const handleCollapseChange = (key: string | string[]): void => { const handleCollapseChange = (key: string | string[]): void => {
const lastKey = Array.isArray(key) ? key.slice(-1)[0] : key; const lastKey = Array.isArray(key) ? key.slice(-1)[0] : key;
logEvent('Trial: Blocker Screen Tab FAQ Item Clicked', { panelKey: lastKey }); logEvent('Workspace Blocked: Screen Tab FAQ Item Clicked', {
panelKey: lastKey,
});
}; };
useEffect(() => { useEffect(() => {