You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2018. It is now read-only.
In #37 we found out that the approach we followed so far to build form inputs will bring problems down the road.
What we need are different components such selects, inputs, text areas, etc. which reuse styles and error logic, instead of a single input component that behaves as any of them depending on the passed options.
In #37 we found out that the approach we followed so far to build form inputs will bring problems down the road.
What we need are different components such selects, inputs, text areas, etc. which reuse styles and error logic, instead of a single input component that behaves as any of them depending on the passed options.
First, we need to extract a select component from https://github.com/coopdevs/katuma-web/tree/develop/src/components/forms/groups/Create.js.
Then, we should identify the duplicated logic between https://github.com/coopdevs/katuma-web/tree/develop/src/components/Input and the new select component and extract it to be shared between them.
This will allow us to create new components to enrich our forms while being consistent throughout the app.