Skip to content

Commit

Permalink
feat: loader for bar charts
Browse files Browse the repository at this point in the history
  • Loading branch information
thearyadev committed Dec 31, 2024
1 parent 0545061 commit 4f99389
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/app/components/charts/barChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import classNames from "classnames";
import { BarChartData } from "@/app/server/actions";
import pareto from 'highcharts/modules/pareto';
import { IconPercentage30 } from "@tabler/icons-react";
import { Loader } from "@mantine/core";

if (typeof Highcharts === 'object') {
pareto(Highcharts)
Expand Down Expand Up @@ -143,7 +144,7 @@ const BarChart = (props: BarChartProps) => {
role="status"
className={`max-w flex text-center justify-center items-center h-[18rem] animate-pulse ${loading ? "" : "hidden"}`}
>
<p>Loading...</p>
<Loader color="blue" className="text-blue-500"/>
</div>
</div>
);
Expand Down

0 comments on commit 4f99389

Please sign in to comment.