Closed jurokapsiar closed 1 year ago
bundleIcon passes filled prop when creating icons.
However since filled props is not valid for svg element, we get this warning when writing tests for components that have icons with filled prop set:
(please note budleIcon in the stacktrace)
The code in question:
This could be presumably fixed by changing it as follows:
const { className, primaryFill = 'currentColor', filled, ...rest, } = props;
and passing rest instead of props.
rest
props
bundleIcon passes filled prop when creating icons.
However since filled props is not valid for svg element, we get this warning when writing tests for components that have icons with filled prop set:
(please note budleIcon in the stacktrace)
The code in question:
This could be presumably fixed by changing it as follows:
and passing
rest
instead ofprops
.