Update frontend/src/components/admin/AIInsightBox.jsx
Browse files
frontend/src/components/admin/AIInsightBox.jsx
CHANGED
|
@@ -32,9 +32,7 @@ export default function AIInsightBox({
|
|
| 32 |
return m.status === "expired" || days < 0;
|
| 33 |
}).length;
|
| 34 |
|
| 35 |
-
const goodStanding = memberships.filter(
|
| 36 |
-
(m) => m.status === "active"
|
| 37 |
-
).length;
|
| 38 |
|
| 39 |
const suggestionText =
|
| 40 |
totalMembers === 0
|
|
@@ -64,8 +62,8 @@ export default function AIInsightBox({
|
|
| 64 |
<TrendingUp className="w-4 h-4 text-emerald-600" />
|
| 65 |
</div>
|
| 66 |
<p className="text-sm text-stone-700">
|
| 67 |
-
{renewingSoon} member{renewingSoon === 1 ? "" : "s"} are
|
| 68 |
-
|
| 69 |
</p>
|
| 70 |
</div>
|
| 71 |
</button>
|
|
@@ -104,7 +102,7 @@ export default function AIInsightBox({
|
|
| 104 |
</div>
|
| 105 |
</button>
|
| 106 |
|
| 107 |
-
{/*
|
| 108 |
<button
|
| 109 |
type="button"
|
| 110 |
onClick={onSuggestionClick}
|
|
|
|
| 32 |
return m.status === "expired" || days < 0;
|
| 33 |
}).length;
|
| 34 |
|
| 35 |
+
const goodStanding = memberships.filter((m) => m.status === "active").length;
|
|
|
|
|
|
|
| 36 |
|
| 37 |
const suggestionText =
|
| 38 |
totalMembers === 0
|
|
|
|
| 62 |
<TrendingUp className="w-4 h-4 text-emerald-600" />
|
| 63 |
</div>
|
| 64 |
<p className="text-sm text-stone-700">
|
| 65 |
+
{renewingSoon} member{renewingSoon === 1 ? "" : "s"} are due for
|
| 66 |
+
renewal in the next 2 weeks
|
| 67 |
</p>
|
| 68 |
</div>
|
| 69 |
</button>
|
|
|
|
| 102 |
</div>
|
| 103 |
</button>
|
| 104 |
|
| 105 |
+
{/* Row 4: suggestion */}
|
| 106 |
<button
|
| 107 |
type="button"
|
| 108 |
onClick={onSuggestionClick}
|