- {typeof title === 'string' ? this.renderDefaultHeader(title) : title}
-
-
-
+ return (
+
+
+
+ {typeof title === 'string' &&
}
+ {typeof title !== 'string' && title}
+
+
-
{this.props.children}
-
-
- );
- }
+
{children}
+
+
+
+ );
}
-export const Modal = withTheme(UnthemedModal);
+interface DefaultModalHeaderProps {
+ title: string;
+ icon?: IconName;
+ iconTooltip?: string;
+}
+
+function DefaultModalHeader({ icon, iconTooltip, title }: DefaultModalHeaderProps): JSX.Element {
+ return
;
+}
diff --git a/public/app/features/admin/UserOrgs.tsx b/public/app/features/admin/UserOrgs.tsx
index 7eb5f0ac67f..73688d93d43 100644
--- a/public/app/features/admin/UserOrgs.tsx
+++ b/public/app/features/admin/UserOrgs.tsx
@@ -1,18 +1,18 @@
import React, { PureComponent } from 'react';
import { css, cx } from 'emotion';
import {
- Modal,
- Themeable,
- stylesFactory,
- withTheme,
- ConfirmButton,
Button,
- HorizontalGroup,
+ ConfirmButton,
Container,
Field,
+ HorizontalGroup,
+ Modal,
+ stylesFactory,
+ Themeable,
+ withTheme,
} from '@grafana/ui';
import { GrafanaTheme } from '@grafana/data';
-import { UserOrg, Organization, OrgRole } from 'app/types';
+import { Organization, OrgRole, UserOrg } from 'app/types';
import { OrgPicker, OrgSelectItem } from 'app/core/components/Select/OrgPicker';
import { OrgRolePicker } from './OrgRolePicker';
@@ -180,6 +180,9 @@ const getAddToOrgModalStyles = stylesFactory(() => ({
buttonRow: css`
text-align: center;
`,
+ modalContent: css`
+ overflow: visible;
+ `,
}));
interface AddToOrgModalProps {
@@ -224,9 +227,14 @@ export class AddToOrgModal extends PureComponent
+