diff --git a/admin-spa/src/routes/Customers/Detail.tsx b/admin-spa/src/routes/Customers/Detail.tsx index 177ea1e..c361bec 100644 --- a/admin-spa/src/routes/Customers/Detail.tsx +++ b/admin-spa/src/routes/Customers/Detail.tsx @@ -10,7 +10,7 @@ import { ErrorCard } from '@/components/ErrorCard'; import { Skeleton } from '@/components/ui/skeleton'; import { Card } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; -import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; +import { VerticalTabForm, FormSection } from '@/components/VerticalTabForm'; import { ArrowLeft, Edit, Mail, Calendar, ShoppingBag, DollarSign, User, MapPin } from 'lucide-react'; import { formatMoney } from '@/lib/currency'; @@ -18,7 +18,6 @@ export default function CustomerDetail() { const { id } = useParams<{ id: string }>(); const navigate = useNavigate(); const customerId = parseInt(id || '0', 10); - const [activeTab, setActiveTab] = React.useState('overview'); // Fetch customer data const customerQuery = useQuery({ @@ -113,18 +112,18 @@ export default function CustomerDetail() { - {/* Tabs */} - - - {__('Overview')} - {__('Orders')} - {__('Address')} - - - {/* Overview Tab */} - + {/* Vertical Tabs */} + + {/* Overview Section */} + {/* Stats Grid */} -
+
@@ -177,10 +176,10 @@ export default function CustomerDetail() { )}
- + - {/* Orders Tab */} - + {/* Orders Section */} +

{__('Order History')}

@@ -238,10 +237,10 @@ export default function CustomerDetail() {
)}
-
+ - {/* Address Tab */} - + {/* Address Section */} +
{/* Billing Address */} @@ -309,8 +308,8 @@ export default function CustomerDetail() { )}
-
- + +
); }