diff --git a/app/layout.tsx b/app/layout.tsx index 09d9f23..984a471 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -7,7 +7,6 @@ import { AnalyticsProvider } from "@/components/AnalyticsProvider"; import { ClientOnly } from "./components/ClientOnly"; import BackgroundBlobsClient from "./components/BackgroundBlobsClient"; import ChatWidget from "./components/ChatWidget"; -import { StagingBanner } from "@/components/StagingBanner"; const inter = Inter({ variable: "--font-inter", @@ -34,7 +33,6 @@ export default function RootLayout({ -
{children}
diff --git a/components/StagingBanner.tsx b/components/StagingBanner.tsx deleted file mode 100644 index aca5644..0000000 --- a/components/StagingBanner.tsx +++ /dev/null @@ -1,76 +0,0 @@ -'use client'; - -import React from 'react'; -import { motion, AnimatePresence } from 'framer-motion'; -import { AlertTriangle, X } from 'lucide-react'; - -export function StagingBanner() { - const [isVisible, setIsVisible] = React.useState(true); - const [isStaging, setIsStaging] = React.useState(false); - - // Check if we're in staging/dev environment (client-side check) - React.useEffect(() => { - if (typeof window !== 'undefined') { - const hostname = window.location.hostname; - const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || ''; - - const staging = - hostname.includes('dev') || - hostname.includes('staging') || - hostname.includes('test') || - baseUrl.includes('dev') || - baseUrl.includes('staging') || - baseUrl.includes('test'); - - setIsStaging(staging); - } - }, []); - - if (!isStaging || !isVisible) { - return null; - } - - return ( - - -
- {/* Compact Header with Close */} -
-
- - - 🧪 Test Environment - -
- -
- - {/* Compact Content */} -
-

- Not production-ready. Data may be unstable. -

-
-
-
-
- ); -}