Skip to content

fix(ui): remove attrs as objects deprecation warning

Yannis Barlas requested to merge styled-components-attrs-arrow-functions into master

This removes a deprecation warning from styled components when attrs is used as an object, and not a function.
Error goes like so:

Functions as object-form attrs({}) keys are now deprecated and will be removed in a future version of styled-components.  
Switch to the new attrs(props => ({})) syntax instead for easier and more powerful composition.  

Merge request reports