fix: intercom showing on cal video page (#23713)
* feat: support auto create agent * fix: intercom showing on cal.video page * Revert "feat: support auto create agent" This reverts commit 084319c419b3baa44a3a82c0a2d79a4242a64d4d. --------- Co-authored-by: Udit Takkar <udit222001@gmail.com>
This commit is contained in:
co-authored by
Udit Takkar
parent
412a6992c7
commit
0fe775962f
@@ -1,4 +1,5 @@
|
||||
"use client";
|
||||
|
||||
import { usePathname } from "next/navigation";
|
||||
import { useEffect, type FC } from "react";
|
||||
import { IntercomProvider } from "react-use-intercom";
|
||||
@@ -36,8 +37,9 @@ const Provider: FC<{ children: React.ReactNode }> = ({ children }) => {
|
||||
|
||||
const pathname = usePathname();
|
||||
const isOnboardingPage = pathname?.startsWith("/getting-started");
|
||||
const isCalVideoPage = pathname?.startsWith("/video/");
|
||||
|
||||
if (isOnboardingPage) {
|
||||
if (isOnboardingPage || isCalVideoPage) {
|
||||
return <>{children}</>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user