Upgrade to React 15.5

This commit is contained in:
Cmdr McDonald
2017-04-21 16:07:41 +01:00
parent 8f944bc4c8
commit 95f358f9d8
45 changed files with 274 additions and 231 deletions

View File

@@ -87,13 +87,13 @@ export default class VerticalBarChart extends TranslatedComponent {
/**
* A label that displays the value within the bar of the chart
*/
const ValueLabel = React.createClass({
propTypes: {
class ValueLabel extends React.Component {
static propTypes = {
x: PropTypes.number,
y: PropTypes.number,
payload: PropTypes.object,
value: PropTypes.number
},
};
render() {
const { x, y, payload, value } = this.props;
@@ -104,4 +104,4 @@ const ValueLabel = React.createClass({
<text x={x} y={y} fill="#000000" textAnchor="middle" dy={20} style={{ fontSize: em }}>{value}</text>
);
}
});
};