Add proptypes
This commit is contained in:
1 parent
1e480a10e0
commit
d942e3144f
1 file changed
+3
-1
@@ -47,7 +47,7 @@ const config = {
|
|||||||
|
|
||||||
const CustomToolTip = ({ active, payload, label, config }) => {
|
const CustomToolTip = ({ active, payload, label, config }) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
console.log(payload);
|
||||||
if (active && payload && payload.length) {
|
if (active && payload && payload.length) {
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
@@ -119,6 +119,7 @@ CustomToolTip.propTypes = {
|
|||||||
active: PropTypes.bool,
|
active: PropTypes.bool,
|
||||||
payload: PropTypes.array,
|
payload: PropTypes.array,
|
||||||
label: PropTypes.string,
|
label: PropTypes.string,
|
||||||
|
config: PropTypes.object,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -306,6 +307,7 @@ PagespeedDetailsAreaChart.propTypes = {
|
|||||||
})
|
})
|
||||||
).isRequired,
|
).isRequired,
|
||||||
interval: PropTypes.number.isRequired,
|
interval: PropTypes.number.isRequired,
|
||||||
|
metrics: PropTypes.object,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default PagespeedDetailsAreaChart;
|
export default PagespeedDetailsAreaChart;
|
||||||
Reference in new issue
Block a user