summaryrefslogtreecommitdiffstats
path: root/webapp/components/analytics/doughnut_chart.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/analytics/doughnut_chart.jsx')
-rw-r--r--webapp/components/analytics/doughnut_chart.jsx12
1 files changed, 7 insertions, 5 deletions
diff --git a/webapp/components/analytics/doughnut_chart.jsx b/webapp/components/analytics/doughnut_chart.jsx
index b6539bd54..598922acd 100644
--- a/webapp/components/analytics/doughnut_chart.jsx
+++ b/webapp/components/analytics/doughnut_chart.jsx
@@ -5,6 +5,8 @@ import {FormattedMessage} from 'react-intl';
import * as Utils from 'utils/utils.jsx';
+import PropTypes from 'prop-types';
+
import React from 'react';
import ReactDOM from 'react-dom';
import Chart from 'chart.js';
@@ -80,9 +82,9 @@ export default class DoughnutChart extends React.Component {
}
DoughnutChart.propTypes = {
- title: React.PropTypes.node,
- width: React.PropTypes.string,
- height: React.PropTypes.string,
- data: React.PropTypes.object,
- options: React.PropTypes.object
+ title: PropTypes.node,
+ width: PropTypes.string,
+ height: PropTypes.string,
+ data: PropTypes.object,
+ options: PropTypes.object
};