Skip to content

Conversation

@cleydyr
Copy link
Member

@cleydyr cleydyr commented Dec 30, 2025

Summary

While reading the source code, I found an opportunity to simplify the external link icon component.

Why are we making this change?

Just for cleanup. ✌️

Impact to users

Since this is a small code refactor, no impact is expected.

@cleydyr cleydyr requested a review from a team as a code owner December 30, 2025 15:46
Copy link
Contributor

@weronikaolejniczak weronikaolejniczak left a comment

Choose a reason for hiding this comment

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

Thanks for contributing, @cleydyr! 💪🏻 If we're cleaning this JSX then personally what I'd do is an early return:

if (!showExternalLinkIcon) return null;
return (...)

@weronikaolejniczak weronikaolejniczak added the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label Dec 31, 2025
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

Copy link
Contributor

@weronikaolejniczak weronikaolejniczak left a comment

Choose a reason for hiding this comment

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

TY! Looks great

@weronikaolejniczak weronikaolejniczak merged commit 2802bed into elastic:main Jan 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants