Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/components/src/SchemaRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ export const SchemaRenderer = ({ schema }: { schema: any }) => {
return <div className="p-2 text-xs text-red-500 border border-red-200 bg-red-50 rounded">Unknown: {type}</div>;
}

// This is dynamic component resolution from registry, not component creation during render
// eslint-disable-next-line
return <Component schema={schema} {...schema} />;
};
1 change: 1 addition & 0 deletions packages/components/src/custom/native-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import * as React from "react"
import { cn } from "../lib/utils"

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {}

const NativeSelect = React.forwardRef<HTMLSelectElement, NativeSelectProps>(
Expand Down
4 changes: 3 additions & 1 deletion packages/components/src/renderers/data-display/statistic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import * as LucideIcons from 'lucide-react';
const getIcon = (name: string) => {
if (!name) return null;
const pascalName = name.split('-').map(part => part.charAt(0).toUpperCase() + part.slice(1)).join('');
// @ts-ignore
// @ts-expect-error - Dynamic icon lookup from Lucide
const Icon = LucideIcons[pascalName] || LucideIcons[name];
return Icon;
};
Expand All @@ -36,6 +36,8 @@ const StatisticRenderer = ({ schema }: { schema: StatisticSchema }) => {
{schema.label}
</p>
)}
{/* Dynamic icon resolution from Lucide, not component creation during render */}
{/* eslint-disable-next-line */}
{Icon && <Icon className="h-4 w-4 text-muted-foreground" />}
</div>

Expand Down
4 changes: 1 addition & 3 deletions packages/components/src/ui/sidebar.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.