aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRulesRow.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRulesRow.js')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRulesRow.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRulesRow.js b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRulesRow.js
index ae74c615802..9a7d140fa14 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRulesRow.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRulesRow.js
@@ -17,14 +17,17 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+// @flow
import React from 'react';
-export default class ProfileRulesRow extends React.Component {
- static propTypes = {
- renderTitle: React.PropTypes.func.isRequired,
- renderCount: React.PropTypes.func.isRequired,
- renderTotal: React.PropTypes.func.isRequired
- };
+type Props = {
+ renderCount: () => ?React.Element<*>,
+ renderTitle: () => React.Element<*>,
+ renderTotal: () => ?React.Element<*>
+};
+
+export default class ProfileRulesRow extends React.PureComponent {
+ props: Props;
render() {
const { renderTitle, renderCount, renderTotal } = this.props;