new things
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user