Skip to content

Conversation

@TkDodo
Copy link
Collaborator

@TkDodo TkDodo commented Sep 1, 2025

  • remove explicit displayName setting. This was a left-over from when we had forwardRef. Now, Icons are just regular named functions, so they will have a correct displayName set automatically.
  • replace export { Icon... } with export function Icon..., as this is what we do everywhere else too.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Sep 1, 2025
@TkDodo TkDodo marked this pull request as ready for review September 1, 2025 08:23
@TkDodo TkDodo requested a review from a team as a code owner September 1, 2025 08:23
# Conflicts:
#	static/app/icons/iconBuilding.tsx
#	static/app/icons/iconCompass.tsx
#	static/app/icons/iconPrevent.tsx
cursor[bot]

This comment was marked as outdated.

function IconCodecov(props: SVGIconProps) {
export function IconCodecov(props: SVGIconProps) {
return (
<SvgIcon {...props} viewBox="0 0 24 24" kind="path">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we need to run some of these through svgo, the precision on these seems excessive - we rarely need more than 2 decimal precision

@TkDodo TkDodo enabled auto-merge (squash) September 12, 2025 14:31
@TkDodo TkDodo merged commit 643f460 into master Sep 12, 2025
45 checks passed
@TkDodo TkDodo deleted the tkdodo/ref/unify-icon-exports branch September 12, 2025 14:41
@github-actions github-actions bot locked and limited conversation to collaborators Sep 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants