new things

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-04-27 12:29:17 +05:00
parent 5b7dbd5019
commit cfa84d04ab
6 changed files with 117 additions and 43 deletions

View File

@@ -53,7 +53,7 @@ export default function Contact() {
event.preventDefault();
if (!phone || !isValidPhone(phone)) {
alert("Iltimos, telefon raqamingizni to'g'ri kiriting!");
alert(t("contact-phone-error"));
return;
}
@@ -77,11 +77,11 @@ export default function Contact() {
text: message,
});
alert("✅ Muvaffaqiyatli yuborildi!");
alert(t("contact-success"));
setPhone("");
} catch (error) {
console.error("Yuborishda xatolik:", error);
alert("❌ Yuborishda xatolik yuz berdi!");
alert(t("contact-error"));
}
};