-
Notifications
You must be signed in to change notification settings - Fork 734
Props deprecations - CardImage, CardSection, StateScreen #1023
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
Conversation
…precated props from demo screens; adding 'source' to StateScreen typings
LogService.warn( | ||
'uilib: Please stop passing borderRadius to Card.Image, it will get the borderRadius from the Card' | ||
); | ||
LogService.deprecationWarn({component: 'CardImage', oldProp: 'borderRadius'}); |
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.
That's a good idea to add this option, but the current message expects the newProp
(actually this is my bad, I need to fix LogService typings).
You can use the warn
method for now.
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.
My suggestion is that we change the LogService deprecationWarn's massage to accommodate this scenario. What do you think?
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.
Added this option in the other PR
Looks like you need to run |
…a/add_deprecation_warnings
Done |
Description
Starting deprecation process for CardImage, CardSection, StateScreen with deprecation warning and support for old and new props.
Changelog
CardImage, CardSection, StateScreen - Adding props deprecation warnings.