+
+ {/* Header Section */}
+
+
+
+
+ {t("profile")}
+
+
+ {isEditing ? t("edit_your_information") : t("view_your_information")}
+
+
+
+
+
+
+
-
-
- {t("personal_info")}
- {t("profile_description")}
+ {/* Profile Card */}
+
+
+
+
+
+ {t("personal_info")}
+
+
+ {t("profile_description")}
+
+
+ {!isEditing && (
+
+ )}
+
-
+
+
{user && (
<>
-
-
-
+ {/* Name Fields - Grid on larger screens */}
+
+ {/* Phone Field */}
+ {/* Address Field */}
-
-
+
+
+ handleInputChange("address", e.target.value)
+ }
+ disabled={!isEditing}
+ className={`h-10 sm:h-11 text-sm sm:text-base ${
+ isEditing
+ ? "border-gray-300 focus:border-blue-500 focus:ring-1 focus:ring-blue-500 bg-white"
+ : "bg-gray-50 border-gray-200 text-gray-700"
+ }`}
+ placeholder={t("enter_address")}
+ />
-
-
-
-
+ {/* Action Buttons - Edit Mode */}
+ {isEditing && (
+
+
+
+
+ )}
>
)}
-
+ {/* Logout Button */}
+
+
+
);
diff --git a/i18n/messages/ru.json b/i18n/messages/ru.json
index eecf6a2..e5d7013 100644
--- a/i18n/messages/ru.json
+++ b/i18n/messages/ru.json
@@ -16,7 +16,8 @@
"send": "Отправить",
"enterPhone": "Введите свой номер телефона",
"weWillSendCode": "Мы вышлем вам код",
- "loading": "Загрузка..."
+ "loading": "Загрузка...",
+ "all_collections_loaded": "Все коллекции загружены"
},
"category": "Категория",
"checkout": "Оформить заказ",
@@ -26,6 +27,7 @@
"total_price": "Общая цена:",
"profile": "Профиль",
"cart_orders": "Корзина заказов",
+ "shipping_method": "Способ доставки",
"product_description_title": "Описание к товару",
"recommended": "Рекомендуем также",
"address_search": "Поиск адреса",
@@ -148,5 +150,9 @@
"only_left": "Осталось {count} шт.",
"stock_limit_title": "Недостаточно на складе",
"stock_limit_message": "{product} закончился. Можно купить только {stock} шт.",
- "understood": "Понятно"
+ "understood": "Понятно",
+ "loading": "Загрузка...",
+ "customer_information": "Информация о клиенте",
+ "name": "Имя"
+
}
\ No newline at end of file
diff --git a/i18n/messages/tm.json b/i18n/messages/tm.json
index cf5caa5..d08664e 100644
--- a/i18n/messages/tm.json
+++ b/i18n/messages/tm.json
@@ -16,7 +16,8 @@
"send": "Ugrat",
"enterPhone": "Telefon belgisini giriziň",
"weWillSendCode": "Biz size kod ugradarys",
- "loading": "Ýüklenýär..."
+ "loading": "Ýüklenýär...",
+ "all_collections_loaded": "Bütüň koleksiyonlar ýüklendi"
},
"category": "Bölümler",
"checkout": "Sargyt et",
@@ -25,6 +26,7 @@
"discount": "Arzanladyş:",
"total_price": "Jemi baha:",
"profile": "Profil",
+ "shipping_method": "Eltip bermek usuly",
"cart_orders": "Sargyt sebedi",
"product_description_title": "Haryt barada maglumat",
"recommended": "Maslahat berilýän harytlar",
@@ -148,5 +150,12 @@
"only_left": "Diňe {count} sany galdy",
"stock_limit_title": "Çäkli sanda",
"stock_limit_message": "{product} harytdan diňe {stock} sany bar. Mundan köp sebediňize goşup bilmersiňiz.",
- "understood": "Düşündim"
+ "understood": "Düşündim",
+ "loading": "Ýüklenýär...",
+ "customer_information": "Müşteri maglumatlary",
+ "name": "Ady"
+
+
+
+
}
\ No newline at end of file
diff --git a/lib/types/api.ts b/lib/types/api.ts
index b550c49..990e430 100644
--- a/lib/types/api.ts
+++ b/lib/types/api.ts
@@ -9,6 +9,7 @@ export interface ProductMedia {
images_720x720: string;
images_800x800: string;
images_1200x1200: string;
+
}
export type DeliveryType = "SELECTED_DELIVERY" | "PICK_UP";