fix(ui): remove attrs as objects deprecation warning
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.