-
-
+
+
Pending Approvals
{pendingNonprofits.length}
@@ -122,20 +120,20 @@ const NonprofitsTab = ({
{pendingNonprofits.map((nonprofit, index) => (
- |
+ |
{nonprofit.name}
|
-
+ |
{nonprofit.organizationType}
|
-
+ |
|
-
+ |
|
-
+ |
Pending
@@ -203,13 +201,10 @@ const NonprofitsTab = ({
{/* Processed Approvals Section */}
|
-
-
+
+
Processed Approvals
-
+
{processedNonprofits.length}
@@ -218,20 +213,20 @@ const NonprofitsTab = ({
{processedNonprofits.map((nonprofit, index) => (
|
- |
+ |
{nonprofit.name}
|
-
+ |
{nonprofit.organizationType}
|
-
+ |
|
-
+ |
|
-
+ |
{nonprofit.nonprofitDocumentApproval ? (
Approved
diff --git a/src/app/admin/_components/OverviewTab.tsx b/src/app/admin/_components/OverviewTab.tsx
index 6e79a62..871bbb1 100644
--- a/src/app/admin/_components/OverviewTab.tsx
+++ b/src/app/admin/_components/OverviewTab.tsx
@@ -127,7 +127,7 @@ const OverviewTab = ({ analyticsData, loading }: OverviewTabProps) => {
{/* Product Distribution Donut Chart */}
{hasProductDistribution && (
-
+
{
{/* Product Status Trends Line Chart */}
{hasTrends && (
-
+
{
{/* Supplier Activity Bar Chart */}
{hasSupplierActivity && (
-
+
{
{/* Nonprofit Engagement Bar Chart */}
{hasNonprofitEngagement && (
-
+
{
{/* Organization Type Breakdown */}
{hasOrgTypes && (
-
+
{
{/* Supplier Cadence Breakdown */}
{hasCadenceData && (
-
+
{
{/* Claims Over Time Line Chart */}
{hasClaimsOverTime && (
-
+
- Product Requests
-
+
+ Product Requests
+
+
-
+
-
+
{[
'Name',
'Unit',
@@ -34,7 +36,7 @@ const ProductRequestsTab = ({
].map((header) => (
|
{header}
|
@@ -45,41 +47,41 @@ const ProductRequestsTab = ({
{productRequests.map((product, index) => (
- |
-
+ |
+
{product.name}
|
-
+ |
{product.unit}
|
-
+ |
{product.quantity}
|
-
+ |
{product.description}
|
-
+ |
{product.status}
|
-
+ |
{getSupplierName(product.supplierId)}
|
-
+ |
{getNonprofitName(product.claimedById)}
|
diff --git a/src/app/admin/_components/SuppliersTab.tsx b/src/app/admin/_components/SuppliersTab.tsx
index 1de19e0..5d2a882 100644
--- a/src/app/admin/_components/SuppliersTab.tsx
+++ b/src/app/admin/_components/SuppliersTab.tsx
@@ -10,22 +10,22 @@ const SuppliersTab = ({ suppliers }: SuppliersTabProps) => {
return (
-
+
-
+
{['Supplier Name', 'Phone', 'Email', 'Cadence'].map(
(header) => (
|
{header}
|
@@ -37,18 +37,18 @@ const SuppliersTab = ({ suppliers }: SuppliersTabProps) => {
{activeSuppliers.map((supplier, index) => (
- |
+ |
{supplier.name}
|
-
+ |
{supplier.users[0]?.phoneNumber || 'N/A'}
|
-
+ |
{supplier.users[0]?.email || 'N/A'}
|
-
+ |
{supplier.cadence}
|
diff --git a/src/app/admin/_components/TabNav.tsx b/src/app/admin/_components/TabNav.tsx
index 8b695f0..8720056 100644
--- a/src/app/admin/_components/TabNav.tsx
+++ b/src/app/admin/_components/TabNav.tsx
@@ -101,22 +101,22 @@ const TabNav = ({
];
return (
-
+
{tabs.map(({ label, count, tab, icon }) => (
setActiveTab(tab)}
>
{icon}
- {label}
+ {label}
{count !== null ? (
- {count}
+ {count}
) : (
0
diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx
index 59d2d84..32a0436 100644
--- a/src/app/admin/page.tsx
+++ b/src/app/admin/page.tsx
@@ -62,14 +62,14 @@ const AdminPage = () => {
]);
return (
-
+
-
+
Admin Dashboard
{error && (
-
+
| | | |