aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/common/MarkdownTips.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/common/MarkdownTips.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/common/MarkdownTips.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/common/MarkdownTips.tsx b/server/sonar-web/src/main/js/components/common/MarkdownTips.tsx
index 1007498f19b..2c99b2f74a4 100644
--- a/server/sonar-web/src/main/js/components/common/MarkdownTips.tsx
+++ b/server/sonar-web/src/main/js/components/common/MarkdownTips.tsx
@@ -18,10 +18,15 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import * as React from 'react';
+import * as classNames from 'classnames';
import { getMarkdownHelpUrl } from '../../helpers/urls';
import { translate } from '../../helpers/l10n';
-export default class MarkdownTips extends React.PureComponent {
+interface Props {
+ className?: string;
+}
+
+export default class MarkdownTips extends React.PureComponent<Props> {
handleClick(evt: React.SyntheticEvent<HTMLAnchorElement>) {
evt.preventDefault();
window.open(getMarkdownHelpUrl(), 'Markdown', 'height=300,width=600,scrollbars=1,resizable=1');
@@ -29,7 +34,7 @@ export default class MarkdownTips extends React.PureComponent {
render() {
return (
- <div className="markdown-tips">
+ <div className={classNames('markdown-tips', this.props.className)}>
<a className="little-spacer-right" href="#" onClick={this.handleClick}>
{translate('markdown.helplink')}
</a>