mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-11 08:17:29 -05:00
28 lines
616 B
JavaScript
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
|