This contains a couple fixes for minor bugs
that were discovered after adding static types
to the category data editing code.
The other changes are mostly refactoring and styling
- building-view contained BuildingVIew and withCopyEdit
- and imported each data-container
- which each imported withCopyEdit to create their data-container
seemed okay from ts/webpack dev environment
but failed in jest test
Fields/children will be written as components, rather than generated declaratively.
BuildingEdit will be folded into the withCopyEdit higher-order-component,
hopefully removing some duplicated structure and functionality.
- EditForm owns form state
- fully uncontrolled component
- when props change (e.g. when clicking on another building) the
component should completely re-render