-
Notifications
You must be signed in to change notification settings - Fork 581
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(ONYX-1442): adjust HomeViewSectionCard component for bigger screens #11321
base: main
Are you sure you want to change the base?
fix(ONYX-1442): adjust HomeViewSectionCard component for bigger screens #11321
Conversation
export type HeroUnitItem = ExtractNodeType< | ||
HomeViewSectionHeroUnits_section$data["heroUnitsConnection"] | ||
> | ||
|
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.
Removing this type definition in favor of interface HeroUnitItemProps
because the old type definition does not allow to reuse the component due to different shape of types
For example this does not work:
type HeroUnitItem =
| NonNullable<HomeViewSectionCard_section$data["card"]>
| ExtractNodeType<HomeViewSectionHeroUnits_section$data["heroUnitsConnection"]>
Am I right for doing so of there is a better way?
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.
What reuse are you referring to? These components should be fairly specific to the homeView schema and screen so I'm surprised we can't keep this typing as is and address any errors in item access elsewhere.
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.
I am reusing HeroUnit component
This PR resolves ONYX-1442
Description
Adjust the image on the HomeViewSectionCards component on iPad
Before
After
Screen.Recording.2024-12-20.at.13.39.44.mov
PR Checklist
To the reviewers 👀
Changelog updates
Changelog updates
Cross-platform user-facing changes
iOS user-facing changes
Android user-facing changes
Dev changes
Need help with something? Have a look at our docs, or get in touch with us.