From 390f222f347db3fe193ad576fb79a30f8f90a7f1 Mon Sep 17 00:00:00 2001 From: Connor Bryan Date: Tue, 26 Jun 2018 13:44:46 -0500 Subject: [PATCH] Fix an issue where the disableButtons property was not being passed to the modal body. --- common/components/ui/Modal/index.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/common/components/ui/Modal/index.tsx b/common/components/ui/Modal/index.tsx index 181d22f1..8e05efe5 100644 --- a/common/components/ui/Modal/index.tsx +++ b/common/components/ui/Modal/index.tsx @@ -56,7 +56,7 @@ export default class Modal extends PureComponent { } 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 { modalStyle.maxWidth = `${maxWidth}px`; } - const modalBodyProps = { title, children, modalStyle, hasButtons, buttons, handleClose }; + const modalBodyProps = { + title, + children, + modalStyle, + hasButtons, + buttons, + disableButtons, + handleClose + }; const modal = (