diff --git a/src/components/p2p/AdList.tsx b/src/components/p2p/AdList.tsx index 91d3417..495b964 100644 --- a/src/components/p2p/AdList.tsx +++ b/src/components/p2p/AdList.tsx @@ -211,107 +211,77 @@ export function AdList({ type, filters }: AdListProps) { } return ( -
+
{offers.map(offer => ( - -
- {/* Seller Info */} -
- - - {offer.seller_wallet.slice(0, 2).toUpperCase()} + +
+ {/* Seller Info - Compact */} +
+ + + {(offer.seller_wallet || 'XX').slice(0, 2).toUpperCase()} -
-
-

- {offer.seller_wallet.slice(0, 6)}...{offer.seller_wallet.slice(-4)} +

+
+

+ {(offer.seller_wallet || '').slice(0, 4)}...{(offer.seller_wallet || '').slice(-3)}

- {offer.merchant_tier && ( - - )} {offer.seller_reputation?.verified_merchant && ( - - )} - {offer.seller_reputation?.fast_trader && ( - + )}
{offer.seller_reputation && ( -

- {offer.seller_reputation.completed_trades} trades • {' '} - {((offer.seller_reputation.completed_trades / (offer.seller_reputation.total_trades || 1)) * 100).toFixed(0)}% completion +

+ {offer.seller_reputation.completed_trades} trades

)}
- {/* Price */} -
-

Price

-

- {offer.price_per_unit.toFixed(2)} {offer.fiat_currency} -

-
- - {/* Available */} -
-

Available

-

- {offer.remaining_amount} {offer.token} -

- {offer.min_order_amount && ( -

- Min: {offer.min_order_amount} {offer.token} + {/* Price & Amount - Inline */} +

+
+

+ {offer.price_per_unit?.toFixed(2) || '0.00'} {offer.fiat_currency}

- )} +

price

+
+
+

+ {offer.remaining_amount} {offer.token} +

+

available

+
+
+ + {offer.payment_method_name || 'N/A'} + +
- {/* Payment Method */} -
-

Payment

- - {offer.payment_method_name || 'N/A'} - -

- {offer.time_limit_minutes} min limit -

-
- - {/* Action */} -
- {offer.seller_id === user?.id && type !== 'my-ads' && ( + {/* Action Button */} +
+ {type === 'my-ads' ? ( + + {offer.status?.toUpperCase()} + + ) : offer.seller_id === user?.id ? ( Your Ad + ) : ( + )} -
- - {/* Status badge for my-ads */} - {type === 'my-ads' && ( -
-
- - {offer.status.toUpperCase()} - -

- Created: {new Date(offer.created_at).toLocaleDateString()} -

-
-
- )} ))}