Closed bates64 closed 1 year ago
That's right, I'm getting the same error, I think the solution is easy, just use default parameters in the Icon
function, something like:
Icon({'aria-label': ariaLabel, tabIndex, className = defaultClassName, fill = 'currentColor', size = 16, verticalAlign = 'text-bottom'})
Or something like that...
defaultProps
was recently deprecated in React: see https://github.com/facebook/react/pull/16210.Using any Octicon produces something like the following warning:
This is caused by the following code, which needs to be swapped out:
https://github.com/primer/octicons/blob/e05ddd3317c460c1e298cb232bdaa4c2a2d863de/lib/octicons_react/src/createIconComponent.js#L45