import * as React from 'react';
import { translate } from '../../helpers/l10n';
import { SystemUpgrade } from '../../types/system';
+import Link from '../common/Link';
import { Button } from '../controls/buttons';
import SystemUpgradeForm from './SystemUpgradeForm';
import { groupUpgrades, sortUpgrades, UpdateUseCase } from './utils';
const { openSystemUpgradeForm } = this.state;
if (systemUpgrades.length === 0) {
- return null;
+ return (
+ <Link
+ className="spacer-left"
+ to="https://www.sonarqube.org/downloads/?referrer=sonarqube"
+ target="_blank"
+ >
+ {translate('learn_more')}
+ </Link>
+ );
}
return (
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`should not show button if there are no upgrades 1`] = `""`;
+exports[`should not show button if there are no upgrades 1`] = `
+<ForwardRef(Link)
+ className="spacer-left"
+ target="_blank"
+ to="https://www.sonarqube.org/downloads/?referrer=sonarqube"
+>
+ learn_more
+</ForwardRef(Link)>
+`;
exports[`should open modal correctly 1`] = `
<Fragment>