slider component updated

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-04-28 11:29:06 +05:00
parent cfa84d04ab
commit 77c6baaa55
25 changed files with 1308 additions and 1770 deletions

View File

@@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { useTranslations } from "next-intl";
import Text from "../lib_components/text";
import axios from "axios";
import { FormEvent } from "react";
@@ -42,7 +42,7 @@ const isValidPhone = (value: string) => {
};
export default function Contact() {
const { t } = useTranslation();
const t = useTranslations();
const [phone, setPhone] = useState("");
const handlePhoneChange = (value: string) => {
@@ -63,7 +63,7 @@ export default function Contact() {
: `+998${normalized}`;
try {
const token = "7940057045:AAHRFPvgUCo_7pqpXD6uq4li7-_DYx2J96g"; // Use environment variable
const token = "7940057045:AAHRFPvgUCo_7pqpXD6uq4li7-_DYx2J96g";
const chatId = 6134458285;
if (!token || !chatId) {
@@ -99,7 +99,6 @@ export default function Contact() {
<Text txt="contact-h2" />
</h2>
{/* Form */}
<form
className="flex max-sm:flex-col gap-5 w-full max-w-2xl px-4"
onSubmit={sendMessage}