diff --git a/src/features/profile/lib/data.ts b/src/features/profile/lib/data.ts index 7eff467..9ae40a7 100644 --- a/src/features/profile/lib/data.ts +++ b/src/features/profile/lib/data.ts @@ -126,7 +126,7 @@ export const orders = [ export const user = { phone: '+998 90 123 45 67', email: 'akmal@example.com', - avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Akmal', + avatar: '/logos/logo.png', memberSince: '2024-yil yanvar', loyaltyPoints: 2450, totalOrders: 47, diff --git a/src/features/profile/ui/Profile.tsx b/src/features/profile/ui/Profile.tsx index 4be39c7..2398082 100644 --- a/src/features/profile/ui/Profile.tsx +++ b/src/features/profile/ui/Profile.tsx @@ -18,9 +18,7 @@ import { Package, RefreshCw, ShoppingBag, - TrendingUp, Truck, - Wallet, } from 'lucide-react'; import { useState } from 'react'; import { orders, user } from '../lib/data'; @@ -86,12 +84,6 @@ const Profile = () => { { id: 'history', label: 'Tarix', icon: History }, ]; - const statistics = { - delivered: orders.filter((o) => o.status === 'delivered').length, - inTransit: orders.filter((o) => o.status === 'inTransit').length, - atPickup: orders.filter((o) => o.status === 'atPickup').length, - }; - const renderContent = () => { switch (activeSection) { case 'orders': @@ -114,74 +106,6 @@ const Profile = () => { default: return ( <> -
- - -
-
- -
- -
-

- {user.totalOrders} -

-

- Jami buyurtmalar -

-
-
- - - -
-
- -
- -
-

- {(user.totalSpent / 1000000).toFixed(1)}M -

-

- Jami xarajat -

-
-
- - - -
-
- -
-
-

- {statistics.inTransit} -

-

- {"Yo'lda"} -

-
-
- - - -
-
- -
-
-

- {statistics.delivered} -

-

- Yetkazildi -

-
-
-
- {/* Active Orders Section */}
@@ -194,7 +118,7 @@ const Profile = () => { className="text-emerald-600 hover:text-emerald-700 h-8 text-xs md:text-sm" onClick={() => setActiveSection('orders')} > - Barchasi{' '} + Barchasi
@@ -367,10 +291,11 @@ const Profile = () => { {/* Desktop Sidebar - hidden on mobile */}
- + U