bugfix - fixed build bug
This commit is contained in:
parent
a2fd4e8756
commit
70fc1a2826
|
@ -15,7 +15,7 @@ function Icon({
|
||||||
}: IconProps) {
|
}: IconProps) {
|
||||||
const fluentIcons = Object.assign(
|
const fluentIcons = Object.assign(
|
||||||
{},
|
{},
|
||||||
...Object.keys(FluentIcons).map((name) => {
|
...Object.keys(FluentIcons).map((name: any) => {
|
||||||
return {
|
return {
|
||||||
[name]: (
|
[name]: (
|
||||||
<IconContainer
|
<IconContainer
|
||||||
|
@ -25,7 +25,7 @@ function Icon({
|
||||||
nestedComponent={nestedComponent}
|
nestedComponent={nestedComponent}
|
||||||
style={style}
|
style={style}
|
||||||
>
|
>
|
||||||
{React.createElement(FluentIcons[name], {
|
{React.createElement((FluentIcons as any)[name as any], {
|
||||||
color: isActive ? color ?? undefined : undefined,
|
color: isActive ? color ?? undefined : undefined,
|
||||||
style: { width: iconSize[size], height: iconSize[size] },
|
style: { width: iconSize[size], height: iconSize[size] },
|
||||||
})}
|
})}
|
||||||
|
|
Loading…
Reference in New Issue