Skip to content

Commit

Permalink
fix: line chart loading states improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushsoni1010 committed Oct 15, 2023
1 parent b2c22ac commit 474c1d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/components/LineChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const LineChart = (chartData: any) => {
}, []);

return (
<div className="w-full">
<div className="w-full items-center">
{!loading && data.labels ? (
<Line
height={75}
Expand Down Expand Up @@ -99,7 +99,9 @@ const LineChart = (chartData: any) => {
}}
/>
) : (
<p>loading</p>
<p className="text-center font-bold text-lg justify-center relative top-28">
loading...
</p>
)}
</div>
);
Expand Down

0 comments on commit 474c1d7

Please sign in to comment.