chore: remove docs/theme.client
This commit is contained in:
parent
c0f4721d49
commit
10c7646fb1
@ -1,25 +0,0 @@
|
|||||||
'use client';
|
|
||||||
|
|
||||||
import { buttonVariants } from '@/components/ui/button';
|
|
||||||
import { cn } from '@/lib/utils';
|
|
||||||
import { type ReactElement, useState } from 'react';
|
|
||||||
|
|
||||||
export function WidthTrigger(): ReactElement {
|
|
||||||
const [enabled, setEnabled] = useState(false);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
className={cn(buttonVariants({ variant: 'secondary' }))}
|
|
||||||
onClick={() => {
|
|
||||||
setEnabled((prev) => !prev);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{enabled ? <style>{`:root { --fd-layout-width: 1400px; }`}</style> : null}
|
|
||||||
Trigger Width:
|
|
||||||
<span className="ms-1.5 text-fd-muted-foreground">
|
|
||||||
{enabled ? '1400px' : 'default'}
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
);
|
|
||||||
}
|
|
@ -128,7 +128,6 @@ export default async function DocPage({
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
...(await import('@/content/docs/components/tabs.client')),
|
...(await import('@/content/docs/components/tabs.client')),
|
||||||
...(await import('@/content/docs/theme.client')),
|
|
||||||
}}
|
}}
|
||||||
includeFumadocsComponents={true}
|
includeFumadocsComponents={true}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user