Skip to content

Convert admin components that will retain legacy support #2117

@emteknetnz

Description

@emteknetnz

There are react class component(s) that needs to be converted to react functional component(s).

  • LiteralField

Only one in this PR because it's a demonstration of the keeping legacy support for a subset of admin form field components where the old class components in retained separately. I want to ensure this way of retaining support is agreed upon before doing the rest.

Note there are more components than this to convert, limiting number converted at a time to make peer review more manageable.

Acceptance criteria

  • Component(s) are converted to a functional component using hooks
  • Jest test coverage is increased
  • All existing functionality is preserved
  • Legacy class components are retained (if applicable i.e. is admin form field component)

PRs

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions