-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(AlertIcon): icon prop is an object type in v2 #954
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v2 #954 +/- ##
=======================================
Coverage 78.44% 78.44%
=======================================
Files 406 406
Lines 6693 6693
=======================================
Hits 5250 5250
Misses 1443 1443 ☔ View full report in Codecov by Sentry. |
I will close this PR since the approach for passing custom icons is already outlined in the documentation. https://trendmicro-frontend.github.io/tonic-ui/react/v2/components/alert#icons |
User description
icon
prop is an object type in v2, refering to migrating guide https://trendmicro-frontend.github.io/tonic-ui/react/v2/migrations/migrating-from-v1-to-v2.PR Type
Bug fix
Description
icon
prop type in theAlertIcon
component to correctly handle object types as per v2 specifications.Icon
component usage to align with the newiconProp
type, ensuring compatibility with v2.Changes walkthrough 📝
AlertIcon.js
Fix icon prop type and usage in AlertIcon component
packages/react/src/alert/AlertIcon.js
iconProp
from string to object.Icon
component to useas
prop instead oficon
.