+
+
+ {showTooltip && (
+
+
Notifications
+ {pendingOrders > 0 && (
+
+ Pending orders
+ {pendingOrders}
+
+ )}
+ {designApprovals > 0 && (
+
+ Design approvals
+ {designApprovals}
+
+ )}
+ {photoRequests > 0 && (
+
+ Photo requests
+ {photoRequests}
+
+ )}
+
+ )}
+
+ );
+}
diff --git a/src/components/Header.tsx b/src/components/Header.tsx
index c61623a..04bc98a 100644
--- a/src/components/Header.tsx
+++ b/src/components/Header.tsx
@@ -10,6 +10,7 @@ import { prisma } from '@/lib/prisma';
import { getCurrentCustomer } from '@/lib/auth';
import { isAdminAuthenticated } from '@/lib/adminAuth';
import AdminMenu from './AdminMenu';
+import AdminNotifications from './AdminNotifications';
export default async function Header() {
const [categories, collections, customer, isAdmin] = await Promise.all([
@@ -72,7 +73,12 @@ export default async function Header() {
- {isAdmin &&
}
+ {isAdmin && (
+
+ )}
diff --git a/src/components/OlderOrders.tsx b/src/components/OlderOrders.tsx
index 117de55..5b2350c 100644
--- a/src/components/OlderOrders.tsx
+++ b/src/components/OlderOrders.tsx
@@ -13,11 +13,13 @@ interface OlderOrdersProps {
export default function OlderOrders({ orders, formatPrice, statusLabel, statusClasses }: OlderOrdersProps) {
const [isOpen, setIsOpen] = useState(false);
+ if (orders.length === 0) return null;
+
return (
@@ -42,7 +44,6 @@ export default function OlderOrders({ orders, formatPrice, statusLabel, statusCl
{formatPrice(order.total)}
- {/* Tracking Information */}
{order.carrier && order.trackingNumber && (