We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8752db commit ed40a51Copy full SHA for ed40a51
nx-dev/ui-markdoc/src/lib/tags/cards.component.tsx
@@ -101,9 +101,9 @@ export function Cards({
101
);
102
}
103
104
-function callIfFunction(fn: any) {
+function callIfFunction(fn: any, props: { [key: string]: string } = {}) {
105
if (typeof fn === 'function') {
106
- return fn({});
+ return fn(props);
107
108
return fn;
109
@@ -142,7 +142,8 @@ export function LinkCard({
142
(frameworkIcons[icon as Framework]?.image ||
143
callIfFunction(nxDevIcons[icon as keyof typeof nxDevIcons]) ||
144
callIfFunction(
145
- (heroIcons[icon as keyof typeof heroIcons] as any)?.render
+ (heroIcons[icon as keyof typeof heroIcons] as any)?.render,
146
+ { className: 'w-full h-full' }
147
))}
148
</div>
149
)}
0 commit comments