mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-07-21 07:45:40 +00:00
feat: Phase 3 - P2P Fiat Trading System (Production-Ready)
Major Updates: - Footer improvements: English-only text, proper alignment, professional icons - DEX Pool implementation with AMM-based token swapping - Enhanced dashboard with DashboardContext for centralized data - New Citizens section and government entrance page DEX Features: - Token swap interface with price impact calculation - Pool management (add/remove liquidity) - Founder-only admin panel for pool creation - HEZ wrapping functionality (wHEZ) - Multiple token support (HEZ, wHEZ, USDT, USDC, BTC) UI/UX Improvements: - Footer: Removed distracting images, added Mail icons, English text - Footer: Proper left alignment for all sections - DEX Dashboard: Founder access badge, responsive tabs - Back to home navigation in DEX interface Component Structure: - src/components/dex/: DEX-specific components - src/components/admin/: Admin panel components - src/components/dashboard/: Dashboard widgets - src/contexts/DashboardContext.tsx: Centralized dashboard state Shared Libraries: - shared/lib/kyc.ts: KYC status management - shared/lib/citizenship-workflow.ts: Citizenship flow - shared/utils/dex.ts: DEX calculations and utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+18
-3
@@ -10,15 +10,20 @@ import AdminPanel from '@/pages/AdminPanel';
|
||||
import WalletDashboard from './pages/WalletDashboard';
|
||||
import ReservesDashboardPage from './pages/ReservesDashboardPage';
|
||||
import BeCitizen from './pages/BeCitizen';
|
||||
import Citizens from './pages/Citizens';
|
||||
import CitizensIssues from './pages/citizens/CitizensIssues';
|
||||
import GovernmentEntrance from './pages/citizens/GovernmentEntrance';
|
||||
import Elections from './pages/Elections';
|
||||
import EducationPlatform from './pages/EducationPlatform';
|
||||
import P2PPlatform from './pages/P2PPlatform';
|
||||
import { DEXDashboard } from './components/dex/DEXDashboard';
|
||||
import { AppProvider } from '@/contexts/AppContext';
|
||||
import { PolkadotProvider } from '@/contexts/PolkadotContext';
|
||||
import { WalletProvider } from '@/contexts/WalletContext';
|
||||
import { WebSocketProvider } from '@/contexts/WebSocketContext';
|
||||
import { IdentityProvider } from '@/contexts/IdentityContext';
|
||||
import { AuthProvider } from '@/contexts/AuthContext';
|
||||
import { DashboardProvider } from '@/contexts/DashboardContext';
|
||||
import { ProtectedRoute } from '@/components/ProtectedRoute';
|
||||
import NotFound from '@/pages/NotFound';
|
||||
import { Toaster } from '@/components/ui/toaster';
|
||||
@@ -36,14 +41,18 @@ function App() {
|
||||
<WalletProvider>
|
||||
<WebSocketProvider>
|
||||
<IdentityProvider>
|
||||
<Router>
|
||||
<Routes>
|
||||
<DashboardProvider>
|
||||
<Router>
|
||||
<Routes>
|
||||
<Route path="/login" element={<Login />} />
|
||||
|
||||
<Route path="/email-verification" element={<EmailVerification />} />
|
||||
<Route path="/reset-password" element={<PasswordReset />} />
|
||||
<Route path="/" element={<Index />} />
|
||||
<Route path="/be-citizen" element={<BeCitizen />} />
|
||||
<Route path="/citizens" element={<Citizens />} />
|
||||
<Route path="/citizens/issues" element={<CitizensIssues />} />
|
||||
<Route path="/citizens/government" element={<GovernmentEntrance />} />
|
||||
<Route path="/dashboard" element={
|
||||
<ProtectedRoute>
|
||||
<Dashboard />
|
||||
@@ -84,9 +93,15 @@ function App() {
|
||||
<P2PPlatform />
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dex" element={
|
||||
<ProtectedRoute>
|
||||
<DEXDashboard />
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="*" element={<NotFound />} />
|
||||
</Routes>
|
||||
</Router>
|
||||
</Router>
|
||||
</DashboardProvider>
|
||||
</IdentityProvider>
|
||||
</WebSocketProvider>
|
||||
</WalletProvider>
|
||||
|
||||
Reference in New Issue
Block a user