Skip to content

Commit 47f2188

Browse files
Copilothotlong
andcommitted
Add descriptive comments to eslint-disable directives
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent ea8fd5f commit 47f2188

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/components/src/SchemaRenderer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const SchemaRenderer = ({ schema }: { schema: any }) => {
2222
return <div className="p-2 text-xs text-red-500 border border-red-200 bg-red-50 rounded">Unknown: {type}</div>;
2323
}
2424

25+
// This is dynamic component resolution from registry, not component creation during render
2526
// eslint-disable-next-line
2627
return <Component schema={schema} {...schema} />;
2728
};

packages/components/src/renderers/data-display/statistic.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const StatisticRenderer = ({ schema }: { schema: StatisticSchema }) => {
3636
{schema.label}
3737
</p>
3838
)}
39+
{/* Dynamic icon resolution from Lucide, not component creation during render */}
3940
{/* eslint-disable-next-line */}
4041
{Icon && <Icon className="h-4 w-4 text-muted-foreground" />}
4142
</div>

0 commit comments

Comments
 (0)