Skip to content

Commit 4c16f1d

Browse files
committed
cleanup
1 parent ac1d9cd commit 4c16f1d

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

src/frontend/src/app/AppAuthenticated.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import { useHomePageContext } from './HomePageContext';
3434
import { useCurrentOrganization } from '../hooks/organizations.hooks';
3535
import Statistics from '../pages/StatisticsPage/Statistics';
3636
import RetrospectiveGanttChartPage from '../pages/RetrospectivePage/Retrospective';
37-
import { useClarity } from './ClarityProvider';
3837

3938
interface AppAuthenticatedProps {
4039
userId: string;

src/frontend/src/app/ClarityProvider.tsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
/*
2-
* Microsoft Clarity React Context Provider
3-
*
4-
* This provider injects the Microsoft Clarity analytics script into your app and exposes
5-
* the Clarity API via React context. Use the `useClarity` hook to access the Clarity function
6-
* anywhere in your component tree.
7-
*
8-
* Usage:
9-
* import { useClarity } from './ClarityProvider';
10-
* const clarity = useClarity();
11-
* clarity('set', 'userId', '123'); // Example Clarity API call
12-
*
13-
* The Clarity project ID is read from VITE_REACT_APP_CLARITY_PROJECT_ID in your environment.
14-
*/
151
import React, { useEffect, createContext, useContext, useCallback } from 'react';
162

173
// Extend the Window interface to include the Clarity function
@@ -21,13 +7,10 @@ declare global {
217
}
228
}
239

24-
// Your Microsoft Clarity project ID is read from VITE_REACT_APP_CLARITY_PROJECT_ID
2510
const CLARITY_PROJECT_ID = import.meta.env.VITE_REACT_APP_CLARITY_PROJECT_ID as string | undefined;
2611

27-
// Type for the Clarity function
2812
type ClarityFn = (...args: any[]) => void;
2913

30-
// Create the Clarity context
3114
export const ClarityContext = createContext<ClarityFn | undefined>(undefined);
3215

3316
/**
@@ -48,7 +31,6 @@ export const useClarity = () => {
4831
* ClarityProvider component
4932
*
5033
* Injects the Clarity script on mount and provides the Clarity function via context.
51-
* Wrap your app with this provider (typically in AppMain.tsx).
5234
*/
5335
const ClarityProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
5436
useEffect(() => {

0 commit comments

Comments
 (0)