diff --git a/content/docs/components/tabs.client.tsx b/content/docs/components/tabs.client.tsx deleted file mode 100644 index a58d269..0000000 --- a/content/docs/components/tabs.client.tsx +++ /dev/null @@ -1,45 +0,0 @@ -'use client'; - -import { buttonVariants } from '@/components/ui/button'; -import { cn } from '@/lib/utils'; -import { Tab, Tabs } from 'fumadocs-ui/components/tabs'; -import { useEffect, useState } from 'react'; - -export function UrlBar() { - const [url, setUrl] = useState(''); - useEffect(() => { - const timer = setInterval(() => { - setUrl(window.location.pathname + window.location.hash); - }, 100); - - return () => { - clearInterval(timer); - }; - }, []); - - return
{url}
; -} - -export function WithoutValueTest() { - const [items, setItems] = useState(['Item 1', 'Item 2']); - - return ( - <> - - {items.map((item) => ( - {item} - ))} - - - - ); -} diff --git a/content/docs/components/tabs.mdx b/content/docs/components/tabs.mdx index 131113e..c6955b6 100644 --- a/content/docs/components/tabs.mdx +++ b/content/docs/components/tabs.mdx @@ -39,7 +39,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs'; Rust is fast - +{/* */} ### Shared Value @@ -119,7 +119,7 @@ to automatically update the URL hash whenever time a new tab is selected: ``` - +{/* */} diff --git a/src/app/[locale]/docs/[[...slug]]/page.tsx b/src/app/[locale]/docs/[[...slug]]/page.tsx index 73e16da..6ee5f48 100644 --- a/src/app/[locale]/docs/[[...slug]]/page.tsx +++ b/src/app/[locale]/docs/[[...slug]]/page.tsx @@ -127,7 +127,6 @@ export default async function DocPage({ ); }, - ...(await import('@/content/docs/components/tabs.client')), }} includeFumadocsComponents={true} />