From bcfd2f4ce3dfd5821c18eff35a9a7ba11b3fe4eb Mon Sep 17 00:00:00 2001 From: saeed0920 Date: Mon, 8 Sep 2025 22:53:16 +0330 Subject: [PATCH] fix some useless changes --- app/components/common/popup-bar-chart.tsx | 74 --------------------- app/components/dashboard/sidebar.tsx | 4 +- app/root.tsx | 80 +++++++++++------------ 3 files changed, 42 insertions(+), 116 deletions(-) delete mode 100644 app/components/common/popup-bar-chart.tsx diff --git a/app/components/common/popup-bar-chart.tsx b/app/components/common/popup-bar-chart.tsx deleted file mode 100644 index 268a003..0000000 --- a/app/components/common/popup-bar-chart.tsx +++ /dev/null @@ -1,74 +0,0 @@ -import { - Bar, - BarChart, - CartesianGrid, - XAxis, - YAxis, - LabelList, - ResponsiveContainer, -} from "recharts"; -import { Card, CardContent } from "~/components/ui/card"; -import { - type ChartConfig, - ChartContainer, -} from "~/components/ui/chart"; -import { formatNumber } from "~/lib/utils"; - -export type PopupChartDatum = { - name: string; - value: number; -}; - -const chartConfig = { - value: { - label: "Operational Fee", - color: "#4ADE80", // Green-400 - }, -} satisfies ChartConfig; - - -export function PopupBarChart({ - data, -}: { - data: PopupChartDatum[]; -}) { - return ( - - - - - - - - `${formatNumber(Math.round(value))}`} - /> - - `${formatNumber(Math.round(v))}`} - /> - - - - - - - ); -} \ No newline at end of file diff --git a/app/components/dashboard/sidebar.tsx b/app/components/dashboard/sidebar.tsx index f4be4ad..4a90072 100644 --- a/app/components/dashboard/sidebar.tsx +++ b/app/components/dashboard/sidebar.tsx @@ -31,7 +31,7 @@ interface SidebarProps { interface MenuItem { id: string; label: string; - icon: React.ComponentType<{ className?: string }>; + icon: React.ComponentType<{ className?: string }> | null; href?: string; children?: MenuItem[]; badge?: string | number; @@ -109,7 +109,7 @@ const menuItems: MenuItem[] = [ { id: "strategic-alignment", label: "میزان انطباق راهبردی", - icon: BarChart3, + icon: null, href: "#", // This is not a route, it opens a popup }, ]; diff --git a/app/root.tsx b/app/root.tsx index fbd4c63..4dbc143 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -41,51 +41,51 @@ export function Layout({ children }: { children: React.ReactNode }) { - {children} - {children} + + }, + }} + />