a small fix
This commit is contained in:
1 parent
9940cf9ef5
commit
d89e75da15
1 file changed
+6
-1
@@ -1,7 +1,8 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import "./barChart.css";
|
import "./barChart.css";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
const BarChart = ({ checks }) => {
|
const BarChart = ({ checks = [] }) => {
|
||||||
return (
|
return (
|
||||||
<div className="bar-chart">
|
<div className="bar-chart">
|
||||||
{checks.map((value, index) => (
|
{checks.map((value, index) => (
|
||||||
@@ -15,4 +16,8 @@ const BarChart = ({ checks }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
BarChart.propTypes = {
|
||||||
|
checks: PropTypes.array,
|
||||||
|
};
|
||||||
|
|
||||||
export default BarChart;
|
export default BarChart;
|
||||||
Reference in new issue
Block a user