Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
codecalm committed Sep 27, 2024
1 parent a4ac054 commit 35f5153
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/icons-preact/src/createPreactComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ const createPreactComponent = (
title,
children,
className = '',
class: cls = '',
class: classes = '',
style,
...rest
}: IconProps) =>
h(
'svg',
'svg' as any,
{
...defaultAttributes[type],
width: String(size),
height: size,
class: [`tabler-icon`, `tabler-icon-${iconName}`, cls, className].join(' '),
height: String(size),
class: [`tabler-icon`, `tabler-icon-${iconName}`, classes, className].join(' '),
...(type === 'filled'
? {
fill: color,
Expand All @@ -40,7 +40,8 @@ const createPreactComponent = (
[
title && h('title', {}, title),
...iconNode.map(([tag, attrs]) => h(tag, attrs)),
...toChildArray(children)],
...toChildArray(children),
],
);

Component.displayName = `${iconNamePascal}`;
Expand Down

0 comments on commit 35f5153

Please sign in to comment.