mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
React.lazy expects default exports, but all finance registry files were using named exports. This caused build failures with the error: "Element type is invalid: expected a string ... but got: undefined" Changes: - Updated all finance registry files to import and re-export as default - Removed non-existent mini-chart and symbol-overview MDX files - Updated sidebar navigation to remove mini-chart and symbol-overview - Fixed market-overview, ticker-tape, and trading-panel registry files The finance components now properly load in ComponentPreview during static site generation.
12 lines
287 B
TypeScript
12 lines
287 B
TypeScript
import { Sidebar, SidebarProvider } from "@/registry/default/ui/sidebar"
|
|
|
|
export default function SidebarDemo() {
|
|
return (
|
|
<SidebarProvider>
|
|
<div className="w-full min-h-[400px] flex items-center justify-center">
|
|
<Sidebar />
|
|
</div>
|
|
</SidebarProvider>
|
|
)
|
|
}
|