Add skeletons and loading conditions
This commit is contained in:
1 parent
ac2cf49082
commit
a33c0c16a0
5 files changed
+64
-11
No files matched your search
@@ -44,14 +44,6 @@ const PageSpeedDetails = () => {
|
||||
setMetrics((prev) => ({ ...prev, [id]: !prev[id] }));
|
||||
};
|
||||
|
||||
if (isLoading) {
|
||||
return "funk";
|
||||
}
|
||||
|
||||
if (typeof audits === "undefined") {
|
||||
return "No Data";
|
||||
}
|
||||
|
||||
return (
|
||||
<Stack gap={theme.spacing(10)}>
|
||||
<Breadcrumbs list={BREADCRUMBS} />
|
||||
@@ -76,7 +68,10 @@ const PageSpeedDetails = () => {
|
||||
metrics={metrics}
|
||||
handleMetrics={handleMetrics}
|
||||
/>
|
||||
<PerformanceReport audits={audits} />
|
||||
<PerformanceReport
|
||||
shouldRender={!isLoading}
|
||||
audits={audits}
|
||||
/>
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user