From 947f5ff773310ae76ba694f08d543a08c2822d09 Mon Sep 17 00:00:00 2001 From: Owaise Imdad Date: Sat, 1 Mar 2025 08:10:16 +0530 Subject: [PATCH] Added a new HOC in status bar in order to make sure it works on both the resolution, high and low. --- .../Charts/StatusPageBarChart/index.jsx | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/src/Components/Charts/StatusPageBarChart/index.jsx b/src/Components/Charts/StatusPageBarChart/index.jsx index 5acf4c3d6..46e8ae2a1 100644 --- a/src/Components/Charts/StatusPageBarChart/index.jsx +++ b/src/Components/Charts/StatusPageBarChart/index.jsx @@ -24,6 +24,21 @@ const StatusPageBarChart = ({ checks = [] }) => { checks = [...checks, ...placeholders]; } + const BarBox = ({ width, height, backgroundColor, borderRadius, children }) => ( + + {children} + + ); + return ( { /* TODO what is the purpose of this box? */ // CAIO_REVIEW the purpose of this box is to make sure there are always at least 25 bars // even if there are less than 25 checks - ) : ( { }, }} > - { transition: "height 600ms cubic-bezier(0.4, 0, 0.2, 1)", }} /> - + ) )}