-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Card: add types #32561
Card: add types #32561
Conversation
Size Change: 0 B Total Size: 1.03 MB ℹ️ View Unchanged
|
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.
Looking good overall 😉
I've left some questions and thoughts, nothing major 😉
I'm happy to re-review once #32557 lands.
a8f786a
to
564c683
Compare
77445ff
to
dc6ad74
Compare
dc6ad74
to
6bce1b3
Compare
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.
Looks good to me 👍
Description
This is part of a series of PRs with the final goal of achieving the same result as #32243 in smaller (and easier to review) steps.
Requires #32557 to be merged first.
This PR adds types to
<Card />
and its subcomponents. The types may not be written in the most elegant way, but their main purpose is to simplify the review work on the upcoming PRs, which will focus on swapping the current implementation with the new one (g2).When refactoring to the new implementation, all components props will be types using the
PolymorphicComponentProps
type.Testing instructions
The changes are not affecting any runtime code.
Components / Card
stories against the production version — there shouldn't be any differenceScreenshots
N/A
Types of changes
Refactor (folder structure)
Checklist:
*.native.js
files for terms that need renaming or removal).