pass chart to all containers

This commit is contained in:
Ben Phelps committed 2023-09-06 15:28:37 +03:00
1 parent ef3da08d93
commit 7a1f8850b8
9 files changed
+23 -23

No files matched your search

+2 -2
View File
@@ -27,11 +27,11 @@ export default function Component({ service }) {
});
if (error) {
return <Container><Error error={error} /></Container>;
return <Container chart={chart}><Error error={error} /></Container>;
}
if (!data) {
return <Container><Block position="bottom-3 left-3">-</Block></Container>;
return <Container chart={chart}><Block position="bottom-3 left-3">-</Block></Container>;
}
data.splice(chart ? 5 : 1);