Skip to content

Commit

Permalink
Bundleicon fix (#523)
Browse files Browse the repository at this point in the history
* Automate bumping react-icons beta version number

* revert

* remove manifest.json

* Release 1.1.179

* revert

* fix:update bundleIcon utility to handle props properly

Co-authored-by: Fluent Build System <flubuild@microsoft.com>
  • Loading branch information
tomi-msft and fluentCI committed Nov 14, 2022
1 parent 8ed4829 commit 028f3c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/react-icons/package.json
Expand Up @@ -52,7 +52,7 @@
},
"peerDependencies": {
"@griffel/react": "^1.0.0",
"react": ">=16.8.0 <18.0.0"
"react": ">=16.8.0 <=18.0.0"
},
"files": [
"lib/",
Expand Down
6 changes: 3 additions & 3 deletions packages/react-icons/src/utils/bundleIcon.tsx
Expand Up @@ -10,12 +10,12 @@ const useBundledIconStyles = makeStyles({

const bundleIcon = (FilledIcon: React.FC<FluentIconsProps>, RegularIcon: React.FC<FluentIconsProps>) => {
const Component: React.FC<FluentIconsProps> = (props) => {
const { className, primaryFill = 'currentColor', filled } = props;
const { className, primaryFill = 'currentColor', filled, ...rest } = props;
const styles = useBundledIconStyles();
return (
<React.Fragment>
<FilledIcon
{...props}
{...rest}
className={mergeClasses(
styles.root,
filled && styles.visible,
Expand All @@ -25,7 +25,7 @@ const bundleIcon = (FilledIcon: React.FC<FluentIconsProps>, RegularIcon: React.F
fill={primaryFill}
/>
<RegularIcon
{...props}
{...rest}
className={mergeClasses(
styles.root,
!filled && styles.visible,
Expand Down

0 comments on commit 028f3c8

Please sign in to comment.