mia-platform / design-system

React graphical components designed by Mia Platform
https://mia-platform.github.io/design-system/
Apache License 2.0
13 stars 1 forks source link

Do we want to remove the repetition of component naming within component folders? #685

Open Danielecina opened 3 weeks ago

Danielecina commented 3 weeks ago

The description of the bug or the rationale of your proposal

Currently, we have a pattern similar to that in the components.

The idea was to centralize the index.tsx everything we wanted to export about that component declaratively and not export everything by default.

Do we understand if we continue to like this aspect or change every part of the components to export all from index.tsx that contains the principal component

The new structure will be similar to this:

To date, it is certainly much more declarative and secure as to what we want to export things that we don't want to come out

fredmaggiowski commented 1 week ago

yes please

i don't see a valid reason to have such repetition as it only provides cluttering in name and file management.