dxc-technology / halstack-react

Library of components for building SPAs with React and Halstack Design System
https://developer.dxc.com/halstack/
Apache License 2.0
15 stars 14 forks source link

Type styled components in the same way in all components #1569

Closed raquelarrojo closed 1 year ago

raquelarrojo commented 1 year ago

We are typing styled components in a very different way in all our components. After the ts-nocheck removal, we should be typing them in the same way.

Example: image

This will be changed to:

const HeaderContainer = styled.header<{margin: HeaderPropsType["margin"]; underlined: HeaderPropsType["underlined"];}>

In that way all the components will be homogeneously typed.