diff --git a/packages/grant-explorer/src/features/common/ProjectCard.tsx b/packages/grant-explorer/src/features/common/ProjectCard.tsx index c104235d41..c5a7a15a89 100644 --- a/packages/grant-explorer/src/features/common/ProjectCard.tsx +++ b/packages/grant-explorer/src/features/common/ProjectCard.tsx @@ -15,7 +15,6 @@ import { ProjectBanner } from "./ProjectBanner"; import { createIpfsImageUrl } from "common/src/ipfs"; import { getConfig } from "common/src/config"; import { usePostHog } from "posthog-js/react"; -import { useEffect } from "react"; export function ProjectLogo(props: { className?: string; diff --git a/packages/grant-explorer/src/features/discovery/PaginatedProjectsList.tsx b/packages/grant-explorer/src/features/discovery/PaginatedProjectsList.tsx index 27e83efc95..8e46bbaddf 100644 --- a/packages/grant-explorer/src/features/discovery/PaginatedProjectsList.tsx +++ b/packages/grant-explorer/src/features/discovery/PaginatedProjectsList.tsx @@ -3,7 +3,6 @@ import { LoadingRing } from "../common/Spinner"; import { ProjectCard, ProjectCardSkeleton } from "../common/ProjectCard"; import { ApplicationSummary } from "data-layer"; import { usePostHog } from "posthog-js/react"; -import { useEffect } from "react"; interface PaginatedProjectsListProps { applications: ApplicationSummary[]; diff --git a/packages/grant-explorer/src/posthog.ts b/packages/grant-explorer/src/posthog.ts index 7765e6fc7b..ca33e50622 100644 --- a/packages/grant-explorer/src/posthog.ts +++ b/packages/grant-explorer/src/posthog.ts @@ -8,13 +8,6 @@ export const initPosthog = () => { session_recording: { maskTextSelector: '[data-testid="rk-account-button"]', }, - // note: https://posthog.com/docs/product-analytics/autocapture - // autocapture: { - // dom_event_allowlist: ["click"], // DOM events from this list ['click', 'change', 'submit'] - // url_allowlist: ["posthog.com./docs/.*"], // strings or RegExps - // element_allowlist: ["button"], // DOM elements from this list ['a', 'button', 'form', 'input', 'select', 'textarea', 'label'] - // css_selector_allowlist: ["[ph-autocapture]"], // List of CSS selectors - // }, }); console.log("Posthog initialized");