diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2019-02-05 09:38:19 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-03-06 11:30:41 +0100 |
commit | 9bd42df0365a3c64161ac9283c62b4a9f422402d (patch) | |
tree | 0bf09e9422342aa91c949c62481841481aec48db /server/sonar-web/src/main/js/components/controls/Modal.tsx | |
parent | 2847ce4e648a167335d675a3ba6e71b7b1b0f248 (diff) | |
download | sonarqube-9bd42df0365a3c64161ac9283c62b4a9f422402d.tar.gz sonarqube-9bd42df0365a3c64161ac9283c62b4a9f422402d.zip |
SONARCLOUD-379 Enable users sync on existing ALM bound organizations
* Display org sync advertisement block
* Add membersSync prop to organization type and update mock functions
* Extract RadioCard from CardPlan
* Allow to customize Modal through ConfirmButton
* Add user sync configuration modal
* Show help tooltip when user sync is activated
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.tsx | 5 |
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 ( |