mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-30 12:47:56 +00:00
fix(p2p): rename 'My Orders' to 'My Trades' for consistency
- Updated P2POrders.tsx page title - Updated P2PDashboard.tsx button label - Updated P2PTrade.tsx back button - Updated P2PDispute.tsx navigation button - Updated NotificationBell.tsx link text - Terminology now correctly reflects p2p_fiat_trades table
This commit is contained in:
@@ -274,7 +274,7 @@ export function NotificationBell() {
|
||||
}}
|
||||
className="justify-center text-gray-400 hover:text-white cursor-pointer"
|
||||
>
|
||||
View all orders
|
||||
View all trades
|
||||
</DropdownMenuItem>
|
||||
</>
|
||||
)}
|
||||
|
||||
@@ -105,7 +105,7 @@ export function P2PDashboard() {
|
||||
className="border-gray-700 hover:bg-gray-800"
|
||||
>
|
||||
<ClipboardList className="w-4 h-4 mr-2" />
|
||||
My Orders
|
||||
My Trades
|
||||
{userStats.activeTrades > 0 && (
|
||||
<Badge className="ml-2 bg-yellow-500 text-black">
|
||||
{userStats.activeTrades}
|
||||
|
||||
@@ -278,7 +278,7 @@ export default function P2PDispute() {
|
||||
The dispute you are looking for does not exist or you do not have access.
|
||||
</p>
|
||||
<Button onClick={() => navigate('/p2p/orders')}>
|
||||
Go to My Orders
|
||||
Go to My Trades
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
@@ -75,7 +75,7 @@ export default function P2POrders() {
|
||||
setTrades(tradesWithOffers);
|
||||
} catch (error) {
|
||||
console.error('Fetch trades error:', error);
|
||||
toast.error('Failed to load orders');
|
||||
toast.error('Failed to load trades');
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
@@ -250,7 +250,7 @@ export default function P2POrders() {
|
||||
<CardContent className="py-12 text-center">
|
||||
<AlertTriangle className="w-16 h-16 text-yellow-500 mx-auto mb-4" />
|
||||
<h2 className="text-xl font-semibold text-white mb-2">Login Required</h2>
|
||||
<p className="text-gray-400 mb-6">Please log in to view your P2P orders.</p>
|
||||
<p className="text-gray-400 mb-6">Please log in to view your P2P trades.</p>
|
||||
<Button onClick={() => navigate('/login')}>Log In</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
@@ -285,7 +285,7 @@ export default function P2POrders() {
|
||||
|
||||
{/* Title */}
|
||||
<div className="mb-6">
|
||||
<h1 className="text-3xl font-bold text-white">My Orders</h1>
|
||||
<h1 className="text-3xl font-bold text-white">My Trades</h1>
|
||||
<p className="text-gray-400">View and manage your P2P trades</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -404,7 +404,7 @@ export default function P2PTrade() {
|
||||
className="text-gray-400 hover:text-white"
|
||||
>
|
||||
<ArrowLeft className="w-4 h-4 mr-2" />
|
||||
My Orders
|
||||
My Trades
|
||||
</Button>
|
||||
<div className="flex-1" />
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user