mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-24 13:17:10 +08:00
fix: mixpanel issues (#6840)
This commit is contained in:
-10
@@ -9,8 +9,6 @@ import bytes from 'bytes';
|
||||
import { useAtom, useSetAtom } from 'jotai';
|
||||
import { useCallback, useEffect, useMemo } from 'react';
|
||||
|
||||
import { mixpanel } from '../../../utils';
|
||||
|
||||
export const CloudQuotaModal = () => {
|
||||
const t = useAFFiNEI18N();
|
||||
const currentWorkspace = useService(WorkspaceService).workspace;
|
||||
@@ -93,14 +91,6 @@ export const CloudQuotaModal = () => {
|
||||
};
|
||||
}, [currentWorkspace.engine.blob, setOpen, workspaceQuota]);
|
||||
|
||||
useEffect(() => {
|
||||
if (userQuota?.name) {
|
||||
mixpanel.people.set({
|
||||
plan: userQuota.name,
|
||||
});
|
||||
}
|
||||
}, [userQuota?.name]);
|
||||
|
||||
return (
|
||||
<ConfirmModal
|
||||
open={open}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { mixpanel } from '@affine/core/utils';
|
||||
import { DebugLogger } from '@affine/debug';
|
||||
import type { EditorHost } from '@blocksuite/block-std';
|
||||
import type { ElementModel } from '@blocksuite/blocks';
|
||||
import { AIProvider } from '@blocksuite/presets';
|
||||
@@ -58,8 +57,6 @@ type BlocksuiteActionEvent = Parameters<
|
||||
Parameters<typeof AIProvider.slots.actions.on>[0]
|
||||
>[0];
|
||||
|
||||
const logger = new DebugLogger('affine:ai-tracker');
|
||||
|
||||
const trackAction = ({
|
||||
eventName,
|
||||
properties,
|
||||
@@ -67,7 +64,6 @@ const trackAction = ({
|
||||
eventName: AIActionEventName;
|
||||
properties: AIActionEventProperties;
|
||||
}) => {
|
||||
logger.debug('trackAction', eventName, properties);
|
||||
mixpanel.track(eventName, properties);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user