diff --git a/frontend/components/analytics/posthog.js b/frontend/components/analytics/posthog.js deleted file mode 100644 index 8b8e88a22..000000000 --- a/frontend/components/analytics/posthog.js +++ /dev/null @@ -1,16 +0,0 @@ -import posthog from 'posthog-js'; - -import { ENV, POSTHOG_API_KEY, POSTHOG_HOST } from '../utilities/config'; - -export const initPostHog = () => { - if (typeof window !== 'undefined') { - // eslint-disable-next-line - if (ENV == 'production' && TELEMETRY_CAPTURING_ENABLED) { - posthog.init(POSTHOG_API_KEY, { - api_host: POSTHOG_HOST - }); - } - } - - return posthog; -}; diff --git a/frontend/components/utilities/telemetry/Telemetry.js b/frontend/components/utilities/telemetry/Telemetry.js index 92bdc078e..e4f7283f8 100644 --- a/frontend/components/utilities/telemetry/Telemetry.js +++ b/frontend/components/utilities/telemetry/Telemetry.js @@ -10,7 +10,7 @@ class Capturer { capture(item) { if (ENV == "production" && TELEMETRY_CAPTURING_ENABLED) { try { - api.capture(item); + this.api.capture(item); } catch (error) { console.error("PostHog", error); } @@ -20,7 +20,7 @@ class Capturer { identify(id) { if (ENV == "production" && TELEMETRY_CAPTURING_ENABLED) { try { - api.identify(id); + this.api.identify(id); } catch (error) { console.error("PostHog", error); } diff --git a/frontend/pages/requestnewinvite.js b/frontend/pages/requestnewinvite.tsx similarity index 53% rename from frontend/pages/requestnewinvite.js rename to frontend/pages/requestnewinvite.tsx index c33861647..0f1358267 100644 --- a/frontend/pages/requestnewinvite.js +++ b/frontend/pages/requestnewinvite.tsx @@ -2,6 +2,10 @@ import React from "react"; import Head from "next/head"; import Image from "next/image"; +/** + * This is the page that shows up when a user's invitation + * to join a project/organization on Infisical has expired + */ export default function RequestNewInvite() { return (
Oops, your invite has expired.
-Ask the administrator for a new one.
-- Note: If it still {"doesn't work"}, please reach out to us at +
Oops, your invite has expired.
+Ask your admin for a new one.
++ Note: If it still {"doesn't work"}, please reach out to us at support@infisical.com
-