gsoft-inc/ov-igloo-icons

Remove .defaultProps in icons library

Closed this issue · 0 comments

defaultProps will eventually be removed so we should update this in Icons.
Instead, the default props should be added directly within the component function using destructuring.
Example:
const Text = ({ fontSize = "20px" }) => { return <p style={{ fontSize }}>Some text</p>; };
This should be done for each icon and inside the template