How to use the Modal comoponent
ModalStore
, which tracks the current modal’s type, size, and any custom data associated with it. This documentation outlines how to use, modify, and expand the modal functionality.
ModalStore
from modal.store
and instantiate it in your component.
openModal
and closeModal
methods from ModalStore
to manage modal visibility.
getComponentForPath
method in MainModal
.
ModalType
enum in modal.store.js
by adding a new type for your custom modal.
getComponentForPath
method in MainModal
to include your new modal type.
ModalType
enum:
MainModal
to handle the new modal type: