mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): mixpanel error when opt-out (#6861)
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
import { appSettingAtom } from '@toeverything/infra';
|
import { appSettingAtom } from '@toeverything/infra';
|
||||||
import { useAtomValue } from 'jotai/react';
|
import { useAtomValue } from 'jotai/react';
|
||||||
import mixpanel from 'mixpanel-browser';
|
|
||||||
import { useLayoutEffect } from 'react';
|
import { useLayoutEffect } from 'react';
|
||||||
|
|
||||||
|
import { mixpanel } from './utils';
|
||||||
|
|
||||||
export function Telemetry() {
|
export function Telemetry() {
|
||||||
const settings = useAtomValue(appSettingAtom);
|
const settings = useAtomValue(appSettingAtom);
|
||||||
useLayoutEffect(() => {
|
useLayoutEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user