vocdoni / ui-components

Vocdoni UI components libs
GNU General Public License v3.0
3 stars 2 forks source link

ConfirmModal contents are now customizable via prop in ElectionQuestions #105

Closed elboletaire closed 11 months ago

elboletaire commented 11 months ago

I'm not entirely sure if we should add full customization to the modals, and allow customizing each component it's created with. Allowing custom contents right now, and with all the theming capabilities it already has, for now should be enough.

I also used these changes to add a new onInvalid handler to be able to have more control in case the form has invalid fields.

The ConfirmModal has been moved to components/layout, since it was more logical to be there, plus some internal functionality has been renamed and it has been exported (it wasn't before).

closes #96