From eb38c9cb0e2f0f261f823afece8dd5d48591703c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 13 Nov 2024 13:58:31 +0000 Subject: [PATCH] chore: format code with Prettier --- apps/app/app/layout.tsx | 36 ++++++++++++++++++------------------ apps/app/hooks/posthog.tsx | 16 ++++++++-------- apps/www/app/layout.tsx | 26 +++++++++++++------------- apps/www/hooks/posthog.tsx | 16 ++++++++-------- 4 files changed, 47 insertions(+), 47 deletions(-) diff --git a/apps/app/app/layout.tsx b/apps/app/app/layout.tsx index 67ddbd4..c1d8ddb 100644 --- a/apps/app/app/layout.tsx +++ b/apps/app/app/layout.tsx @@ -25,25 +25,25 @@ async function RootLayout({ return ( - - - - -
- - - {children} -
-
-
- + + + +
+ + + {children} +
+
+
+
); diff --git a/apps/app/hooks/posthog.tsx b/apps/app/hooks/posthog.tsx index 2728dfe..e4ce0e7 100644 --- a/apps/app/hooks/posthog.tsx +++ b/apps/app/hooks/posthog.tsx @@ -1,17 +1,17 @@ -'use client' -import posthog from 'posthog-js' -import { PostHogProvider } from 'posthog-js/react' +"use client"; +import posthog from "posthog-js"; +import { PostHogProvider } from "posthog-js/react"; -if (typeof window !== 'undefined') { +if (typeof window !== "undefined") { posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, { api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST!, - person_profiles: 'identified_only', // or 'always' to create profiles for anonymous users as well - }) + person_profiles: "identified_only", // or 'always' to create profiles for anonymous users as well + }); } export function PosthogProvider({ children, }: Readonly<{ children: React.ReactNode; }>) { - return {children} -} \ No newline at end of file + return {children}; +} diff --git a/apps/www/app/layout.tsx b/apps/www/app/layout.tsx index b4eafda..b75e5d9 100644 --- a/apps/www/app/layout.tsx +++ b/apps/www/app/layout.tsx @@ -17,20 +17,20 @@ export default function RootLayout({ return ( - - -
- {children} -
-
- + +
+ {children} +
+
+
); diff --git a/apps/www/hooks/posthog.tsx b/apps/www/hooks/posthog.tsx index 2728dfe..e4ce0e7 100644 --- a/apps/www/hooks/posthog.tsx +++ b/apps/www/hooks/posthog.tsx @@ -1,17 +1,17 @@ -'use client' -import posthog from 'posthog-js' -import { PostHogProvider } from 'posthog-js/react' +"use client"; +import posthog from "posthog-js"; +import { PostHogProvider } from "posthog-js/react"; -if (typeof window !== 'undefined') { +if (typeof window !== "undefined") { posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, { api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST!, - person_profiles: 'identified_only', // or 'always' to create profiles for anonymous users as well - }) + person_profiles: "identified_only", // or 'always' to create profiles for anonymous users as well + }); } export function PosthogProvider({ children, }: Readonly<{ children: React.ReactNode; }>) { - return {children} -} \ No newline at end of file + return {children}; +}