Skip to content

Commit f7d7a50

Browse files
Automated linting/formatter update
1 parent 46fbcd5 commit f7d7a50

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

  • packages/pages-components/src/components/analytics

packages/pages-components/src/components/analytics/provider.tsx

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
import {
2-
PropsWithChildren,
3-
useRef,
4-
lazy,
5-
Suspense,
6-
useEffect,
7-
useState,
8-
} from "react";
1+
import { PropsWithChildren, useRef, lazy, Suspense, useEffect, useState } from "react";
92
import { getRuntime } from "../../util/index.js";
103
import { Analytics } from "./Analytics.js";
114
import { AnalyticsMethods, AnalyticsProviderProps } from "./interfaces.js";
@@ -21,7 +14,7 @@ const AnalyticsDebugger = lazy(() => import("./debugger.js"));
2114
* @public
2215
*/
2316
export function AnalyticsProvider(
24-
props: PropsWithChildren<AnalyticsProviderProps>,
17+
props: PropsWithChildren<AnalyticsProviderProps>
2518
): React.ReactElement {
2619
const {
2720
children,
@@ -53,7 +46,7 @@ export function AnalyticsProvider(
5346
requireOptIn,
5447
disableSessionTracking,
5548
productionDomains,
56-
enableDebugging ?? debuggingParamDetected(),
49+
enableDebugging ?? debuggingParamDetected()
5750
);
5851
}
5952

@@ -80,9 +73,7 @@ export function AnalyticsProvider(
8073

8174
return (
8275
<>
83-
<AnalyticsContext.Provider value={analytics}>
84-
{children}
85-
</AnalyticsContext.Provider>
76+
<AnalyticsContext.Provider value={analytics}>{children}</AnalyticsContext.Provider>
8677
{isClient &&
8778
(enableDebugging || debuggingParamDetected()) &&
8879
getRuntime().name === "browser" ? (

0 commit comments

Comments
 (0)