withModal
Last updated
Was this helpful?
Last updated
Was this helpful?
Note: Prefer Hooks if you're using a functional component.
The modal
prop injected bywithodal()
is covered in .
Using withModal
will give you access to:
this.props.modal
currentModal
: name of the current 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 .