mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(core): add track events for page info (#7667)
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
Tooltip,
|
||||
} from '@affine/component';
|
||||
import { useCurrentWorkspacePropertiesAdapter } from '@affine/core/hooks/use-affine-adapter';
|
||||
import { track } from '@affine/core/mixpanel';
|
||||
import { DocLinksService } from '@affine/core/modules/doc-link';
|
||||
import type {
|
||||
PageInfoCustomProperty,
|
||||
@@ -678,6 +679,7 @@ export const PagePropertiesTableHeader = ({
|
||||
const dTimestampElement = useDebouncedValue(timestampElement, 500);
|
||||
|
||||
const handleCollapse = useCallback(() => {
|
||||
track.doc.inlineDocInfo.$.toggle();
|
||||
onOpenChange(!open);
|
||||
}, [onOpenChange, open]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user