+ | {order.invoice_number ?? "—"} |
+ {order.company_name} |
+ {order.anticipated_pickup_date ?? "—"} |
+ ${Number(order.subtotal).toFixed(2)} |
|
{order.payment_status === "paid" ? "Paid" : order.balance_due > 0 ? `$${Number(order.balance_due).toFixed(2)} due` : "Partial"}
@@ -282,8 +282,8 @@ function DashboardTab({ stats, recentOrders, brandId, onMsg, webhookActivity }:
{/* Recent webhook activity */}
{webhookActivity.length > 0 && (
-
- Recent Webhook Activity
+
+ Recent Webhook Activity
diff --git a/src/components/shared/LoadingSkeleton.tsx b/src/components/shared/LoadingSkeleton.tsx
index 766d45d..9235de2 100644
--- a/src/components/shared/LoadingSkeleton.tsx
+++ b/src/components/shared/LoadingSkeleton.tsx
@@ -11,12 +11,12 @@ type SkeletonProps = {
};
function SkeletonLine({ className = "" }: { className?: string }) {
- return ;
+ return ;
}
export function SkeletonText({ lines = 3, className = "" }: { lines?: number; className?: string }) {
return (
-
+
{Array.from({ length: lines }).map((_, i) => (
))}
@@ -26,10 +26,10 @@ export function SkeletonText({ lines = 3, className = "" }: { lines?: number; cl
export function SkeletonCard({ className = "" }: SkeletonProps) {
return (
-
+
-
-
+
+
@@ -40,19 +40,19 @@ export function SkeletonCard({ className = "" }: SkeletonProps) {
export function SkeletonTable({ rows = 5, cols = 4, className = "" }: { rows?: number; cols?: number; className?: string }) {
return (
-
-
-
+
+
+
{Array.from({ length: cols }).map((_, i) => (
-
+
))}
-
+
{Array.from({ length: rows }).map((_, rowIdx) => (
-
+
{Array.from({ length: cols }).map((_, colIdx) => (
-
+
))}
))}
@@ -66,7 +66,7 @@ export function SkeletonAvatar({ className = "" }: SkeletonProps) {
}
export function SkeletonButton({ className = "" }: SkeletonProps) {
- return ;
+ return ;
}
export default function LoadingSkeleton({ variant = "text", width, height, className = "", count = 1 }: SkeletonProps) {
@@ -78,7 +78,7 @@ export default function LoadingSkeleton({ variant = "text", width, height, class
if (variant === "card") {
return (
-
+
{items.map((_, i) => (
))}
@@ -108,7 +108,7 @@ export default function LoadingSkeleton({ variant = "text", width, height, class
}
// default: text
return (
-
+
{items.map((_, i) => (
))}
|