Fix an issue where the disableButtons property was not being passed to the modal body.

This commit is contained in:
Connor Bryan 2018-06-26 13:44:46 -05:00
parent 23f6ffe56f
commit 390f222f34

View File

@ -56,7 +56,7 @@ export default class Modal extends PureComponent<Props, {}> {
}
public render() {
const { isOpen, title, children, buttons, handleClose, maxWidth } = this.props;
const { isOpen, title, children, buttons, disableButtons, handleClose, maxWidth } = this.props;
const hasButtons = buttons && buttons.length;
const modalStyle: ModalStyle = {};
@ -65,7 +65,15 @@ export default class Modal extends PureComponent<Props, {}> {
modalStyle.maxWidth = `${maxWidth}px`;
}
const modalBodyProps = { title, children, modalStyle, hasButtons, buttons, handleClose };
const modalBodyProps = {
title,
children,
modalStyle,
hasButtons,
buttons,
disableButtons,
handleClose
};
const modal = (
<TransitionGroup>