aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/controls/Modal.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/controls/Modal.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/controls/Modal.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/controls/Modal.tsx b/server/sonar-web/src/main/js/components/controls/Modal.tsx
index 7f91bb4e082..e7b14c3a1df 100644
--- a/server/sonar-web/src/main/js/components/controls/Modal.tsx
+++ b/server/sonar-web/src/main/js/components/controls/Modal.tsx
@@ -23,7 +23,8 @@ import * as classNames from 'classnames';
ReactModal.setAppElement('#content');
-interface OwnProps {
+export interface ModalProps {
+ children: React.ReactNode;
medium?: boolean;
noBackdrop?: boolean;
large?: boolean;
@@ -32,7 +33,7 @@ interface OwnProps {
type MandatoryProps = Pick<ReactModal.Props, 'contentLabel'>;
-type Props = Partial<ReactModal.Props> & MandatoryProps & OwnProps;
+type Props = Partial<ReactModal.Props> & MandatoryProps & ModalProps;
export default function Modal(props: Props) {
return (