Skip to content

Commit 0a2ddf0

Browse files
authored
refactor: remove cal ai banners (calcom#24885)
1 parent 04fc0f1 commit 0a2ddf0

4 files changed

Lines changed: 1 addition & 66 deletions

File tree

apps/web/public/cal-ai-banner.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/web/public/static/locales/en/common.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,8 +836,6 @@
836836
"workflow_validation_failed": "Workflow validation failed",
837837
"workflow_validation_empty_fields": "One or more workflow steps have empty message content",
838838
"workflow_validation_unverified_contacts": "One or more phone numbers or email addresses are not verified",
839-
"supercharge_your_workflows_with_cal_ai": "Supercharge your Workflows with Cal.ai",
840-
"supercharge_your_workflows_with_cal_ai_description": "Lifelike AI agents that book meetings, send reminders, and follow up with your customers.",
841839
"phone_number_imported_successfully": "Phone number imported and linked to agent successfully",
842840
"phone_number_deleted_successfully": "Phone number deleted successfully",
843841
"delete_phone_number_confirmation": "Are you sure you want to delete this phone number? This action cannot be undone.",

packages/features/shell/CalAiBanner.tsx

Lines changed: 0 additions & 59 deletions
This file was deleted.

packages/features/shell/Shell.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import { useSession } from "next-auth/react";
4-
import { usePathname, useRouter } from "next/navigation";
4+
import { useRouter } from "next/navigation";
55
import type { Dispatch, ReactElement, ReactNode, SetStateAction } from "react";
66
import React, { cloneElement } from "react";
77
import { Toaster } from "sonner";
@@ -17,7 +17,6 @@ import { Button } from "@calcom/ui/components/button";
1717
import { ErrorBoundary } from "@calcom/ui/components/errorBoundary";
1818
import { SkeletonText } from "@calcom/ui/components/skeleton";
1919

20-
import { CalAiBanner } from "./CalAiBanner";
2120
import { DynamicModals } from "./DynamicModals";
2221
import { SideBarContainer } from "./SideBar";
2322
import { TopNavContainer } from "./TopNav";
@@ -28,7 +27,6 @@ import { useAppTheme } from "./useAppTheme";
2827

2928
const Layout = (props: LayoutProps) => {
3029
const { banners, bannersHeight } = useBanners();
31-
const pathname = usePathname();
3230

3331
useFormbricks();
3432

@@ -208,7 +206,6 @@ function MainContainer({
208206
{/* show top navigation for md and smaller (tablet and phones) */}
209207
{TopNavContainerProp}
210208
<div className="max-w-full p-2 sm:py-4 lg:px-6">
211-
<CalAiBanner />
212209
<ErrorBoundary>
213210
{!props.withoutMain ? <ShellMain {...props}>{props.children}</ShellMain> : props.children}
214211
</ErrorBoundary>

0 commit comments

Comments
 (0)