Skip to content

Commit

Permalink
chore: format code with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 13, 2024
1 parent e90daad commit eb38c9c
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 47 deletions.
36 changes: 18 additions & 18 deletions apps/app/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ async function RootLayout({
return (
<html lang="en" suppressHydrationWarning>
<PosthogProvider>
<body
className={`min-h-screen bg-background font-sans ${GeistSans.variable} antialiased`}
>
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem
disableTransitionOnChange
<body
className={`min-h-screen bg-background font-sans ${GeistSans.variable} antialiased`}
>
<SidebarProvider defaultOpen={defaultOpen}>
<AppSidebar />
<div className="p-2">
<ProgressBar />
<Infobar />
{children}
</div>
</SidebarProvider>
</ThemeProvider>
</body>
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem
disableTransitionOnChange
>
<SidebarProvider defaultOpen={defaultOpen}>
<AppSidebar />
<div className="p-2">
<ProgressBar />
<Infobar />
{children}
</div>
</SidebarProvider>
</ThemeProvider>
</body>
</PosthogProvider>
</html>
);
Expand Down
16 changes: 8 additions & 8 deletions apps/app/hooks/posthog.tsx
Original file line number Diff line number Diff line change
@@ -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 <PostHogProvider client={posthog}>{children}</PostHogProvider>
}
return <PostHogProvider client={posthog}>{children}</PostHogProvider>;
}
26 changes: 13 additions & 13 deletions apps/www/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ export default function RootLayout({
return (
<html lang="en" suppressHydrationWarning>
<PosthogProvider>
<body
className={` bg-background font-sans min-h-screen ${GeistSans.variable} antialiased`}
>
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem
disableTransitionOnChange
<body
className={` bg-background font-sans min-h-screen ${GeistSans.variable} antialiased`}
>
<div className="flex flex-col items-center bg-background mx-auto">
{children}
</div>
</ThemeProvider>
</body>
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem
disableTransitionOnChange
>
<div className="flex flex-col items-center bg-background mx-auto">
{children}
</div>
</ThemeProvider>
</body>
</PosthogProvider>
</html>
);
Expand Down
16 changes: 8 additions & 8 deletions apps/www/hooks/posthog.tsx
Original file line number Diff line number Diff line change
@@ -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 <PostHogProvider client={posthog}>{children}</PostHogProvider>
}
return <PostHogProvider client={posthog}>{children}</PostHogProvider>;
}

0 comments on commit eb38c9c

Please sign in to comment.