operational-ui
operational-ui copied to clipboard
Rewrite ControlledModal
Rewrite current ControlledModal
in order to:
- Stop requiring component consumers to use
<ControlledModalContent>
from the neighbourConfirm.tsx
component, sinceControlledModal
already wraps its children into theContent
container - Stop requiring component consumers to use
<Actions>
from the neighbourConfirm.tsx
component, since actions can be passed as a prop to theControlledModal
component
Issues to consider:
- Possibility to embed a
<Form>
element into the Modal - Prevent re-rendering of the whole page each time anything in the modal changes.