Skip to content

Commit

Permalink
(fix): revert breaking bundleIcon change (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi-msft authored Jun 17, 2024
1 parent b86c1f7 commit c0c9576
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions packages/react-icons/src/utils/bundleIcon.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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();
Expand All @@ -33,15 +32,6 @@ const bundleIcon = (FilledIcon: FluentIcon, RegularIcon: FluentIcon, LightIcon:
className
)}
/>
<LightIcon
{...rest}
className={mergeClasses(
styles.root,
!filled && styles.visible,
iconLightClassName,
className
)}
/>
</React.Fragment>
)
}
Expand Down

0 comments on commit c0c9576

Please sign in to comment.