From 0c668f0e4b7b75c98aab7b5b03d1d87f0c7d14d1 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Thu, 12 Sep 2019 12:55:10 +0200 Subject: [PATCH] add option to transmit className prop to Modal --- .../packages/ui-components/src/modals/Modal.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scm-ui-components/packages/ui-components/src/modals/Modal.js b/scm-ui-components/packages/ui-components/src/modals/Modal.js index d0d96977c6..960f8277f0 100644 --- a/scm-ui-components/packages/ui-components/src/modals/Modal.js +++ b/scm-ui-components/packages/ui-components/src/modals/Modal.js @@ -8,13 +8,12 @@ type Props = { body: any, footer?: any, active: boolean, + className?: string }; - - class Modal extends React.Component { render() { - const { title, closeFunction, body, footer, active } = this.props; + const { title, closeFunction, body, footer, active, className } = this.props; const isActive = active ? "is-active" : null; @@ -24,7 +23,7 @@ class Modal extends React.Component { } return ( -
+