mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
Upgrade to React 15.5
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user