diff --git a/src/App.tsx b/src/App.tsx index 2b401d2..2aacb47 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -21,6 +21,7 @@ import { InventoryPage } from './pages/dashboard/InventoryPage'; import { BulkUploadPage } from './pages/dashboard/BulkUploadPage'; import { AddProductPage } from './pages/dashboard/AddProductPage'; import { OrdersPage } from './pages/dashboard/OrdersPage'; +import { ReturnsTrackerPage } from './pages/dashboard/ReturnsTrackerPage'; import { PayoutsPage } from './pages/dashboard/PayoutsPage'; import { StorefrontPage } from './pages/dashboard/StorefrontPage'; import { SettingsPage } from './pages/dashboard/SettingsPage'; @@ -51,6 +52,7 @@ export const App: React.FC = () => { } /> } /> } /> + } /> } /> } /> } /> diff --git a/src/components/orders/ReportDamageView.tsx b/src/components/orders/ReportDamageView.tsx index 9c77b27..3ab83a5 100644 --- a/src/components/orders/ReportDamageView.tsx +++ b/src/components/orders/ReportDamageView.tsx @@ -1,24 +1,4 @@ import React, { useState } from 'react'; -import { - ChevronRight, - Clock, - ShieldCheck, - Grid, - Package, - RefreshCw, - Calendar, - AlertTriangle, - Archive, - HeartCrack, - Unlock, - ImagePlus, - Landmark, - Zap, - ArrowLeft, - Send, - Loader2, - CheckCircle2 -} from 'lucide-react'; import { OrderItem } from '../../types/seller'; interface ReportDamageViewProps { @@ -31,6 +11,7 @@ export const ReportDamageView: React.FC = ({ onBack, onTa const [damageType, setDamageType] = useState('outer_crushed'); const [isSubmitting, setIsSubmitting] = useState(false); const [isSubmitted, setIsSubmitted] = useState(false); + const [attachedPhotos, setAttachedPhotos] = useState(0); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); @@ -41,294 +22,253 @@ export const ReportDamageView: React.FC = ({ onBack, onTa }, 1200); }; + const triggerFileInput = () => { + document.getElementById('evidenceFileInput')?.click(); + }; + + const handleFileChange = (e: React.ChangeEvent) => { + if (e.target.files && e.target.files.length > 0) { + setAttachedPhotos(prev => prev + e.target.files!.length); + } + }; + return ( -
- - {/* Breadcrumb & Top Indicator Bar */} -
- -
- - Claim Window: 31h remaining (Delivered 24 Oct, 11:30 AM) -
-
- - {/* Editorial Header Block */} -
-
- - 24-Hour Damage Protection -
-

Report Transit Damage

-

We take care of transit issues so you don't have to. Tell us what happened below and receive reimbursement directly to your account within 24 hours.

-
- - {/* Bento Grid Context & Main Claim Form */} -
- - - - - -
- -
- - {/* Top Product Summary Card */} -
-
-
- Product -
-
-
{order?.productTitle || 'Bidriware Silver Inlay Floral Vase'}
-
- Order #{order?.orderNumber || 'TDX-90650'} · Blue Dart AWB {order?.awbNumber || 'BD-98214820'} -
-
-
-
-
Declared Value
-
₹{order?.amount?.toLocaleString() || '6,400'}
+
+
+ {/* Breadcrumb & Top Indicator Bar */} +
+ +
+ schedule + Claim Window: 31h remaining (Delivered 24 Oct, 11:30 AM)
- {/* Simple Form */} -
- - {/* Step 1: Damage Type */} -
-
- - Select one + {/* Editorial Header Block */} +
+
+ verified_user + 24-Hour Damage Protection +
+

Report Transit Damage

+

+ We take care of transit issues so you don't have to. Tell us what happened below and receive reimbursement directly to your account within 24 hours. +

+
+ + {/* Bento Grid Context & Main Claim Form */} +
+ + + + + +
+ +
+ {/* Top Product Summary Card */} +
+
+
+ Product +
+
+
{order?.productTitle || 'Bidriware Silver Inlay Floral Vase'}
+
+ Order #{order?.orderNumber || 'TDX-90650'} · Blue Dart AWB {order?.awbNumber || 'BD-98214820'} +
+
-
- -
-