mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-24 18:57:56 +00:00
feat(p2p): add Phase 3 dispute system components
- Add DisputeModal.tsx with reason selection, evidence upload, terms acceptance - Add P2PDispute.tsx page with evidence gallery, status timeline, real-time updates - Integrate dispute button in P2PTrade.tsx - Add /p2p/dispute/:disputeId route to App.tsx - Add P2P test suite with MockStore pattern (32 tests passing) - Update P2P-BUILDING-PLAN.md with Phase 3 progress (70% complete) - Fix lint errors in test files and components
This commit is contained in:
@@ -36,6 +36,9 @@ const GovernmentEntrance = lazy(() => import('./pages/citizens/GovernmentEntranc
|
||||
const Elections = lazy(() => import('./pages/Elections'));
|
||||
const EducationPlatform = lazy(() => import('./pages/EducationPlatform'));
|
||||
const P2PPlatform = lazy(() => import('./pages/P2PPlatform'));
|
||||
const P2PTrade = lazy(() => import('./pages/P2PTrade'));
|
||||
const P2POrders = lazy(() => import('./pages/P2POrders'));
|
||||
const P2PDispute = lazy(() => import('./pages/P2PDispute'));
|
||||
const DEXDashboard = lazy(() => import('./components/dex/DEXDashboard').then(m => ({ default: m.DEXDashboard })));
|
||||
const Presale = lazy(() => import('./pages/Presale'));
|
||||
const PresaleList = lazy(() => import('./pages/launchpad/PresaleList'));
|
||||
@@ -176,6 +179,21 @@ function App() {
|
||||
<P2PPlatform />
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/p2p/trade/:tradeId" element={
|
||||
<ProtectedRoute>
|
||||
<P2PTrade />
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/p2p/orders" element={
|
||||
<ProtectedRoute>
|
||||
<P2POrders />
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/p2p/dispute/:disputeId" element={
|
||||
<ProtectedRoute>
|
||||
<P2PDispute />
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dex" element={
|
||||
<ProtectedRoute>
|
||||
<DEXDashboard />
|
||||
|
||||
Reference in New Issue
Block a user