-
Notifications
You must be signed in to change notification settings - Fork 376
fix(LoginPage): allow brand props passthrough make brand optional #12194
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe LoginPage component now accepts an optional Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/react-core/src/components/LoginPage/LoginPage.tsx
🧰 Additional context used
🧬 Code graph analysis (1)
packages/react-core/src/components/LoginPage/LoginPage.tsx (1)
packages/react-core/src/components/Brand/Brand.tsx (2)
BrandProps(7-35)Brand(37-82)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Build
- GitHub Check: Build, test & deploy
🔇 Additional comments (3)
packages/react-core/src/components/LoginPage/LoginPage.tsx (3)
5-5: LGTM!The BrandProps import is correctly added and necessary for the new
brandImgPropsprop type definition.
24-25: LGTM!The new optional
brandImgPropsprop correctly enables consumers to pass additional Brand properties (e.g., width, height) through the LoginPage component, addressing issue #11970.
55-55: LGTM!The prop destructuring correctly includes the new
brandImgPropsparameter.
|
Preview: https://pf-react-pr-12194.surge.sh A11y report: https://pf-react-pr-12194-a11y.surge.sh |
… without props Signed-off-by: Mohamed Fall <ps.hackmaster@gmail.com>
Changes:
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.