The LayoutProvider right now seems to be there to support only the Modals. It wraps inside the DefaultLayout which I don't remember why I made such decision.
Proposal
[ ] Make LayoutProvider becomes ModalProvider and wrap it under AuthProvider (and also under SnackbarProvider when #98 is marged)\
[ ] Rename useLayoutModals to simply useModals
[ ] Any future Modal should be put inside ModalProvider so that no 2 modals can be shown at the same time (supported by useModalGroup)
Background
The
LayoutProvider
right now seems to be there to support only theModal
s. It wraps inside theDefaultLayout
which I don't remember why I made such decision.Proposal
LayoutProvider
becomesModalProvider
and wrap it underAuthProvider
(and also underSnackbarProvider
when #98 is marged)\useLayoutModals
to simplyuseModals
Modal
should be put insideModalProvider
so that no 2 modals can be shown at the same time (supported byuseModalGroup
)