connected backend to service page and detail
This commit is contained in:
@@ -61,7 +61,10 @@ export function Footer() {
|
||||
const handleSubscribe = (e: React.FormEvent) => {
|
||||
e.preventDefault();
|
||||
if (email) {
|
||||
formRequest.mutate({ number: email });
|
||||
// Telefon raqamni tozalash (faqat raqamlar)
|
||||
const cleanPhone = email.replace(/\D/g, "");
|
||||
console.log("without 998: ",cleanPhone.slice(3))
|
||||
formRequest.mutate({ number: Number(cleanPhone.slice(3))});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -239,7 +242,9 @@ export function Footer() {
|
||||
<div className="border-t border-gray-800 px-4 py-8">
|
||||
<div className="mx-auto max-w-6xl">
|
||||
<div className="font-almarai flex flex-col justify-center gap-4 text-lg text-gray-400 md:flex-row md:items-center">
|
||||
<a href="http://felix-its.uz/" className="hover:text-red-600">{t("footer.create", { name: "Felix-its.uz" })}</a>
|
||||
<a href="http://felix-its.uz/" className="hover:text-red-600">
|
||||
{t("footer.create", { name: "Felix-its.uz" })}
|
||||
</a>
|
||||
{/* <div className="flex gap-6">
|
||||
<a href="#terms" className="hover:text-white">
|
||||
Terms & Conditions
|
||||
|
||||
Reference in New Issue
Block a user