Initial changes
This commit is contained in:
1 parent
785e0e7a00
commit
b0a3f1fe52
2 files changed
+7
-2
No files matched your search
@@ -49,7 +49,7 @@ const PageSpeedLineChart = ({ pageSpeedChecks = [] }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
PageSpeedLineChart.propTypes = {
|
PageSpeedLineChart.propTypes = {
|
||||||
pageSpeedChecks: PropTypes.array.isRequired,
|
pageSpeedChecks: PropTypes.array,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default PageSpeedLineChart;
|
export default PageSpeedLineChart;
|
||||||
@@ -18,6 +18,7 @@ import GreenCheck from "../../../assets/icons/checkbox-green.svg?react";
|
|||||||
import RedCheck from "../../../assets/icons/checkbox-red.svg?react";
|
import RedCheck from "../../../assets/icons/checkbox-red.svg?react";
|
||||||
|
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
|
import PageSpeedLineChart from "../../../Components/Charts/PagespeedLineChart";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays a box with an icon, title, and value.
|
* Displays a box with an icon, title, and value.
|
||||||
@@ -142,11 +143,12 @@ const PageSpeedDetails = () => {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
console.log(monitor);
|
||||||
setMonitor(res.data.data);
|
setMonitor(res.data.data);
|
||||||
};
|
};
|
||||||
|
|
||||||
fetchMonitor();
|
fetchMonitor();
|
||||||
}, []);
|
}, [monitorId]);
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
_id: "66ad34001d483d284550e8cb",
|
_id: "66ad34001d483d284550e8cb",
|
||||||
@@ -421,6 +423,9 @@ const PageSpeedDetails = () => {
|
|||||||
></StatBox>
|
></StatBox>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Typography component="h2">Score history</Typography>
|
<Typography component="h2">Score history</Typography>
|
||||||
|
<Box height="300px">
|
||||||
|
<PageSpeedLineChart pageSpeedChecks={monitor?.checks?.slice(0, 25)} />
|
||||||
|
</Box>
|
||||||
<Typography component="h2">Performance report</Typography>
|
<Typography component="h2">Performance report</Typography>
|
||||||
<Stack direction="row" alignItems="center" overflow="hidden">
|
<Stack direction="row" alignItems="center" overflow="hidden">
|
||||||
<Stack
|
<Stack
|
||||||
|
|||||||
Reference in new issue
Block a user