From c9d65bfa464431128bd58d1f095e85e83bdb8da7 Mon Sep 17 00:00:00 2001 From: tomi-msft Date: Mon, 17 Jun 2024 08:13:30 -0700 Subject: [PATCH] (fix): revert breaking bundleIcon change --- packages/react-icons/src/utils/bundleIcon.tsx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/packages/react-icons/src/utils/bundleIcon.tsx b/packages/react-icons/src/utils/bundleIcon.tsx index 39989c70f7..92209e9836 100644 --- a/packages/react-icons/src/utils/bundleIcon.tsx +++ b/packages/react-icons/src/utils/bundleIcon.tsx @@ -1,6 +1,5 @@ import * as React from "react"; -import { iconFilledClassName, iconRegularClassName, iconLightClassName } from "./constants"; -import { FluentIconsProps } from "./FluentIconsProps.types"; +import { iconFilledClassName, iconRegularClassName } from "./constants"; import { makeStyles, mergeClasses } from "@griffel/react"; import { FluentIcon } from "./createFluentIcon"; @@ -9,7 +8,7 @@ const useBundledIconStyles = makeStyles({ visible: { display: "inline" } }); -const bundleIcon = (FilledIcon: FluentIcon, RegularIcon: FluentIcon, LightIcon: FluentIcon) => { +const bundleIcon = (FilledIcon: FluentIcon, RegularIcon: FluentIcon) => { const Component: FluentIcon = (props) => { const { className, filled, ...rest } = props; const styles = useBundledIconStyles(); @@ -33,15 +32,6 @@ const bundleIcon = (FilledIcon: FluentIcon, RegularIcon: FluentIcon, LightIcon: className )} /> - ) }