Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
only show intercom chat on org and site pages
Brendan Allanfbd7bc921090
diff --git a/apps/web/app/(org)/layout.tsx b/apps/web/app/(org)/layout.tsxnew file mode 100644index 000000000..c3801f526--- /dev/null+++ b/apps/web/app/(org)/layout.tsx@@ -0,0 +1,11 @@+import { PropsWithChildren } from "react";+import { Intercom } from "../Layout/Intercom";++export default function Layout(props: PropsWithChildren) {+ return (+ <>+ {props.children}+ <Intercom />+ </>+ );+}diff --git a/apps/web/app/(site)/layout.tsx b/apps/web/app/(site)/layout.tsxindex eae95c5d5..93fc4e8f2 100644--- a/apps/web/app/(site)/layout.tsx+++ b/apps/web/app/(site)/layout.tsx@@ -1,6 +1,7 @@import { PropsWithChildren } from "react";import { Footer } from "./Footer";import { Navbar } from "./Navbar";+import { Intercom } from "../Layout/Intercom";export default function Layout(props: PropsWithChildren) {return (@@ -8,6 +9,7 @@ export default function Layout(props: PropsWithChildren) {<Navbar />{props.children}<Footer />+ <Intercom /></>);}diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsxindex d508a8ce9..528ea6fa6 100644--- a/apps/web/app/layout.tsx+++ b/apps/web/app/layout.tsx@@ -86,7 +86,6 @@ export default async function RootLayout({ children }: PropsWithChildren) {<SonnerToaster /><main className="overflow-x-hidden w-full">{children}</main><PosthogIdentify />- <Intercom /></ReactQueryProvider></PublicEnvContext></SessionProvider>