slider component updated
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user