-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
codemod(flex): apply changes for @getsentry/ecosystem #106302
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: master
Are you sure you want to change the base?
Conversation
| display: flex; | ||
| gap: ${space(1)}; | ||
| `; | ||
| export function ButtonWrapper(props: FlexProps<'span'>) { |
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.
@cursoragent modify this to omit as prop from flex signature
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.
Perfect! I've successfully modified the ButtonWrapper component to omit the as prop from the Flex signature.
What I did:
- Changed the props type from
FlexProps<'span'>toOmit<FlexProps<'span'>, 'as'> - This resolves the TypeScript error by excluding the
asprop from the component's signature, since it's already hardcoded to"span"in the implementation
The change has been committed and pushed to the codemod-migration/getsentry-ecosystem branch. This should fix the TypeScript CI failure.
Co-authored-by: jonas.badalic <[email protected]>
Co-authored-by: jonas.badalic <[email protected]>
Co-authored-by: jonas.badalic <[email protected]>
Co-authored-by: jonas.badalic <[email protected]>
Co-authored-by: jonas.badalic <[email protected]>
Co-authored-by: jonas.badalic <[email protected]>
Applies the flex codemod to files owned by @getsentry/ecosystem.