mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-01-16 20:28:28 +01:00
build fix
This commit is contained in:
parent
a4ac054ede
commit
35f51530f2
@ -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,
|
||||
@ -40,7 +40,8 @@ const createPreactComponent = (
|
||||
[
|
||||
title && h('title', {}, title),
|
||||
...iconNode.map(([tag, attrs]) => h(tag, attrs)),
|
||||
...toChildArray(children)],
|
||||
...toChildArray(children),
|
||||
],
|
||||
);
|
||||
|
||||
Component.displayName = `${iconNamePascal}`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user