Files
trunk-server/admin/src/System/ResponsiveErrorChart.js
2021-01-04 22:22:39 -05:00

28 lines
616 B
JavaScript

import React, { Component } from "react"
import ErrorChart from "./ErrorChart"
import { ParentSize } from "@vx/responsive";
class ResponsiveErrorChart extends Component {
constructor(props) {
super(props);
}
render() {
return(
<ParentSize className="graph-container">
{({ width: w, height: h }) => {
return (
<ErrorChart
width={w}
height={h}
data={this.props.data}
/>
);
}}
</ParentSize>
)
}
}
export default ResponsiveErrorChart