-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Labels
Description
Describe the bug
There is a multiple places, where defaultProps is read or set, this is probably would break in react 19
uikit/src/components/Icon/utils.ts
Line 18 in c71b2cd
| return (typeof data === 'object' || typeof data === 'function') && 'defaultProps' in data; |
uikit/src/components/Icon/Icon.tsx
Lines 127 to 129 in c71b2cd
| if (IconComponent.defaultProps) { | |
| IconComponent.defaultProps.width = IconComponent.defaultProps.height = undefined; | |
| } |
Reproduction
Steps to reproduce
No response
Environment
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.