From 287c7b63e74b1bb24bdc9a9cf8261417f43b80e1 Mon Sep 17 00:00:00 2001
From: GurTati <118075413+gurtatiLND@users.noreply.github.com>
Date: Thu, 19 Dec 2024 14:43:58 +0000
Subject: [PATCH] fix: delete dummy data
---
src/app/insights/components/BarGraph.tsx | 4 ----
.../insights/components/InsightsDisplay.tsx | 24 +++++++++----------
2 files changed, 11 insertions(+), 17 deletions(-)
diff --git a/src/app/insights/components/BarGraph.tsx b/src/app/insights/components/BarGraph.tsx
index 62fb7ce2..39d8e1d7 100644
--- a/src/app/insights/components/BarGraph.tsx
+++ b/src/app/insights/components/BarGraph.tsx
@@ -1,12 +1,8 @@
-
interface BarGraphProps {
data: { name: string; value: number }[];
}
-
-
-
export default function BarGraph({ data }: BarGraphProps) {
return (
diff --git a/src/app/insights/components/InsightsDisplay.tsx b/src/app/insights/components/InsightsDisplay.tsx
index 17f37382..574466fe 100644
--- a/src/app/insights/components/InsightsDisplay.tsx
+++ b/src/app/insights/components/InsightsDisplay.tsx
@@ -156,15 +156,15 @@ export default function InsightsDisplay() {
getNeedsData();
}, []);
- const dummyNeedsData = [
- { name: "Integrity", value: 8 },
- { name: "Celebration", value: 35 },
- { name: "Physical Nurturance", value: 12 },
- { name: "Autonomy", value: 10 },
- { name: "Harmony", value: 71 },
- { name: "Play", value: 54 },
- { name: "Interdependence", value: 15 },
- ];
+ // const dummyNeedsData = [
+ // { name: "Integrity", value: 8 },
+ // { name: "Celebration", value: 35 },
+ // { name: "Physical Nurturance", value: 12 },
+ // { name: "Autonomy", value: 10 },
+ // { name: "Harmony", value: 71 },
+ // { name: "Play", value: 54 },
+ // { name: "Interdependence", value: 15 },
+ // ];
return (
<>
@@ -241,11 +241,9 @@ export default function InsightsDisplay() {
- ) : needsData.some((item) => item.value > 0) ? (
+ ) :
- ) : (
-
- )}
+ }
>
);
}