mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +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.
10 lines
446 B
JSON
10 lines
446 B
JSON
{
|
|
"name": "sidebar-demo",
|
|
"files": [
|
|
{
|
|
"name": "sidebar-demo.tsx",
|
|
"content": "import { Sidebar, SidebarProvider } from \"@/registry/default/ui/sidebar\"\n\nexport default function SidebarDemo() {\n return (\n <SidebarProvider>\n <div className=\"w-full min-h-[400px] flex items-center justify-center\">\n <Sidebar />\n </div>\n </SidebarProvider>\n )\n}\n"
|
|
}
|
|
],
|
|
"type": "components:example"
|
|
} |