diff --git a/web/modals/modal.react.js b/web/modals/modal.react.js
--- a/web/modals/modal.react.js
+++ b/web/modals/modal.react.js
@@ -13,6 +13,7 @@
+name: React.Node,
+icon?: Icon,
+onClose: () => void,
+ +onCloseButton?: React.Node,
+children?: React.Node,
+size?: ModalSize,
+fixedHeight?: boolean,
@@ -30,7 +31,15 @@
}
render(): React.Node {
- const { size, children, onClose, fixedHeight, name, icon } = this.props;
+ const {
+ size,
+ children,
+ onClose,
+ fixedHeight,
+ name,
+ icon,
+ onCloseButton,
+ } = this.props;
const overlayClasses = classNames(
css['modal-overlay'],
@@ -44,6 +53,13 @@
const modalClasses = classNames(css['modal'], {
[css['fixed-height-modal']]: fixedHeight,
});
+
+ const cornerCloseButton = onCloseButton ? (
+
+