Skip to content

Commit 35f5153

Browse files
committed
build fix
1 parent a4ac054 commit 35f5153

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: packages/icons-preact/src/createPreactComponent.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ const createPreactComponent = (
1515
title,
1616
children,
1717
className = '',
18-
class: cls = '',
18+
class: classes = '',
1919
style,
2020
...rest
2121
}: IconProps) =>
2222
h(
23-
'svg',
23+
'svg' as any,
2424
{
2525
...defaultAttributes[type],
2626
width: String(size),
27-
height: size,
28-
class: [`tabler-icon`, `tabler-icon-${iconName}`, cls, className].join(' '),
27+
height: String(size),
28+
class: [`tabler-icon`, `tabler-icon-${iconName}`, classes, className].join(' '),
2929
...(type === 'filled'
3030
? {
3131
fill: color,
@@ -40,7 +40,8 @@ const createPreactComponent = (
4040
[
4141
title && h('title', {}, title),
4242
...iconNode.map(([tag, attrs]) => h(tag, attrs)),
43-
...toChildArray(children)],
43+
...toChildArray(children),
44+
],
4445
);
4546

4647
Component.displayName = `${iconNamePascal}`;

0 commit comments

Comments
 (0)