diff --git a/src/features/users/components/UserInspectorSheet.tsx b/src/features/users/components/UserInspectorSheet.tsx index 83de0c6..bd9de22 100644 --- a/src/features/users/components/UserInspectorSheet.tsx +++ b/src/features/users/components/UserInspectorSheet.tsx @@ -59,6 +59,11 @@ import { } from '../data/mockUserCrmData'; import { formatCurrency } from '@/data/mockData'; import { ActionButtons } from './ActionButtons'; +import { OverviewTab } from './tabs/OverviewTab'; +import { BookingsTab } from './tabs/BookingsTab'; +import { SecurityTab } from './tabs/SecurityTab'; +import { SupportTab } from './tabs/SupportTab'; +import { AuditTab } from './tabs/AuditTab'; import { toast } from 'sonner'; import { cn } from '@/lib/utils'; @@ -78,7 +83,6 @@ export function UserInspectorSheet({ onSendNotification, }: UserInspectorSheetProps) { const [activeTab, setActiveTab] = useState('overview'); - const [noteContent, setNoteContent] = useState(''); if (!user) return null; @@ -215,138 +219,37 @@ export function UserInspectorSheet({ Overview Orders - Admin Notes + Security + Support + Audit -
+
{/* Tab 1: Overview */} - - {/* Contact Info */} -
-

Contact Information

-
-
- - {user.email} -
-
- - {user.countryCode} {user.phone} -
- {user.lastDevice && ( -
- - {user.lastDevice.location} -
- )} -
-
- - - - {/* Last Activity */} -
-

Last Activity

-
-
- -
-
-

Scanned at Tech Summit 2026

-

2 hours ago • Verified by Staff

-
-
-
- - - - {/* Tags */} -
-

Tags

-
- {user.tags.map((tag) => ( - - {tag.name} - - ))} - -
-
+ + 0 ? notes[0].content : ''} /> {/* Tab 2: Orders */} - - - - Event - Date - Amount - Status - - - - {bookings.slice(0, 5).map((booking) => ( - - - {booking.eventName} -
{booking.ticketType} x{booking.quantity}
-
- - {new Date(booking.eventDate).toLocaleDateString('en-IN', { day: 'numeric', month: 'short' })} - - - {formatCurrency(booking.amount)} - - - - {booking.status} - - -
- ))} -
-
- {bookings.length === 0 && ( -
No orders found.
- )} +
- {/* Tab 3: Admin Notes */} - -
-
- - Internal Notes -
-