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}
+
+ },
+ }}
+ />