diff --git a/apps/v4/app/(view)/view/[style]/[name]/component-preview.tsx b/apps/v4/app/(view)/view/[style]/[name]/component-preview.tsx
index 4e92c87812..e841d101ea 100644
--- a/apps/v4/app/(view)/view/[style]/[name]/component-preview.tsx
+++ b/apps/v4/app/(view)/view/[style]/[name]/component-preview.tsx
@@ -1,22 +1,13 @@
-"use client"
-
-import { useSearchParams } from "next/navigation"
-
import { cn } from "@/lib/utils"
export function ComponentPreview({ children }: { children: React.ReactNode }) {
- const searchParams = useSearchParams()
- const theme = searchParams.get("theme") ?? "default"
-
return (
-
{children}
+ {children}
)
}
diff --git a/apps/v4/components/chart-iframe.tsx b/apps/v4/components/chart-iframe.tsx
index de62632bfb..afab812c6f 100644
--- a/apps/v4/components/chart-iframe.tsx
+++ b/apps/v4/components/chart-iframe.tsx
@@ -3,7 +3,6 @@
import * as React from "react"
import { cn } from "@/lib/utils"
-import { useThemeConfig } from "@/components/active-theme"
export function ChartIframe({
src,
@@ -15,14 +14,10 @@ export function ChartIframe({
title: string
}) {
const [loaded, setLoaded] = React.useState(false)
- const { activeTheme } = useThemeConfig()
-
- // Append theme as query param so iframe can apply it.
- const iframeSrc = `${src}?theme=${activeTheme}`
return (