vocdoni / ui-components

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

Election actions logic should be in react-providers #109

Closed elboletaire closed 10 months ago

elboletaire commented 11 months ago

Election Actions, now available in the chakra-components package, should be moved to the react-providers one.

It totally makes sense to maintain them as an independent entity, but their provider may be added by us, probably in the election provider.

The toasts logic currently available in the actions-provider (which require chakra as a dependency), could easily be replaced by two new state values (info and error), and use the same logic there's now, but exporting them for other components.