withModal
Last updated
Was this helpful?
Last updated
Was this helpful?
Note: PreferHooks if you're using a functional component.
Using withModal()
will give you access to:
this.props.modal
currentModal
: name of the currently displayed modal if there's one
openModal
: open a specific modal
closeModal
: close a modal
closeModals
: close every instance of a given modal
closeAllModals
: close all open modals
as seen in .