add className prop and make manager prop optional

This commit is contained in:
Dima Livshits
2017-09-11 17:17:18 +03:00
committed by GitHub
parent 1009717327
commit 0f88a0e41e
+3 -1
View File
@@ -10,6 +10,8 @@ declare namespace Modal { }
export = Modal;
interface ModalProps extends TransitionCallbacks, PortalProps {
className?: string;
/**
* Set the visibility of the Modal
*/
@@ -122,5 +124,5 @@ interface ModalProps extends TransitionCallbacks, PortalProps {
* A ModalManager instance used to track and manage the state of open
* Modals. Useful when customizing how modals interact within a container
*/
manager: ModalManager;
manager?: ModalManager;
}