Skip to content
This repository was archived by the owner on May 29, 2018. It is now read-only.
This repository was archived by the owner on May 29, 2018. It is now read-only.

Refactor form inputs #38

@sauloperez

Description

@sauloperez

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions