Skip to content

Commit

Permalink
Add displayName to icons
Browse files Browse the repository at this point in the history
Fixes radix-ui#124 (not tested)
  • Loading branch information
penx committed Feb 28, 2022
1 parent ae5c48f commit e71fc2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/generate-icon-lib/src/templates/named-icon.tsx.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,6 @@ export const <%- iconToComponentName(icon) %> = React.forwardRef<SVGSVGElement,
);
<% } %>

<%- iconToComponentName(icon) %>.displayName = <%- iconToComponentName(icon) %>;

export default <%- iconToComponentName(icon) %>;

0 comments on commit e71fc2d

Please sign in to comment.