From 0dad7b4bbbbac92e9d49470d154e43fdcb69e0a0 Mon Sep 17 00:00:00 2001 From: Batyr Date: Mon, 10 Feb 2025 16:40:56 +0500 Subject: [PATCH] commit --- src/components/shared/about/about-info.tsx | 2 +- src/components/shared/b2b/stage-1.tsx | 2 ++ src/components/shared/b2b/stage-2.tsx | 3 +++ src/components/shared/b2b/stage-3.tsx | 3 +++ src/data/b2b.data.ts | 4 ++-- src/data/contacts.data.ts | 2 +- src/data/home/home-about.data.ts | 3 ++- src/data/stend.data.ts | 4 ++-- 8 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/components/shared/about/about-info.tsx b/src/components/shared/about/about-info.tsx index 88761a0..c87ddc4 100644 --- a/src/components/shared/about/about-info.tsx +++ b/src/components/shared/about/about-info.tsx @@ -42,7 +42,7 @@ export const AboutInfo: FC = () => {

{t("main.block_3.title")}

-

{t("main.block_3.subtitle")}

+

{t("main.block_3.subtitle")}

    {block_3.map((item) => (
  • {item}
  • diff --git a/src/components/shared/b2b/stage-1.tsx b/src/components/shared/b2b/stage-1.tsx index 67230d7..3ea3dd9 100644 --- a/src/components/shared/b2b/stage-1.tsx +++ b/src/components/shared/b2b/stage-1.tsx @@ -14,6 +14,7 @@ import { Field } from "../field"; import { b2bStage1 } from "@/data/b2b.data"; import { useTranslate } from "@/hooks/use-translate"; import { Language, useLangStore } from "@/store/lang"; +import { useScrollTop } from "@/hooks/use-scroll-top"; interface Props { className?: string; @@ -21,6 +22,7 @@ interface Props { } export const Stage1: FC = ({ handleNext }) => { + useScrollTop(); const { control, formState } = useFormContext(); const lang = useLangStore((state) => state.lang); diff --git a/src/components/shared/b2b/stage-2.tsx b/src/components/shared/b2b/stage-2.tsx index 301ac4f..0dba32c 100644 --- a/src/components/shared/b2b/stage-2.tsx +++ b/src/components/shared/b2b/stage-2.tsx @@ -6,6 +6,7 @@ import { Button } from "@/components/ui/button"; import { Language, useLangStore } from "@/store/lang"; import { useTranslate } from "@/hooks/use-translate"; import { b2bStage2 } from "@/data/b2b.data"; +import { useScrollTop } from "@/hooks/use-scroll-top"; interface Props { className?: string; @@ -14,6 +15,8 @@ interface Props { } export const Stage2: FC = ({ handleNext, handlePrev }) => { + useScrollTop(); + const lang = useLangStore((state) => state.lang); const { control, formState } = useFormContext(); diff --git a/src/components/shared/b2b/stage-3.tsx b/src/components/shared/b2b/stage-3.tsx index 763ff3d..561c63d 100644 --- a/src/components/shared/b2b/stage-3.tsx +++ b/src/components/shared/b2b/stage-3.tsx @@ -7,6 +7,7 @@ import { Loader } from "lucide-react"; import { b2bStage3 } from "@/data/b2b.data"; import { useTranslate } from "@/hooks/use-translate"; import { Language, useLangStore } from "@/store/lang"; +import { useScrollTop } from "@/hooks/use-scroll-top"; interface Props { className?: string; @@ -14,6 +15,8 @@ interface Props { } export const Stage3: FC = ({ handlePrev }) => { + useScrollTop(); + const { control, formState } = useFormContext(); const lang = useLangStore((state) => state.lang); diff --git a/src/data/b2b.data.ts b/src/data/b2b.data.ts index b6f8543..d84e4fa 100644 --- a/src/data/b2b.data.ts +++ b/src/data/b2b.data.ts @@ -24,7 +24,7 @@ export const b2bStage1 = [ label: "Номер телефона", }, { - label: "Вебсайт", + label: "Веб-сайт", }, ], }, @@ -48,7 +48,7 @@ export const b2bStage1 = [ label: "Country", }, { - label: "E-mail address", + label: "Email", }, { label: "Phone number", diff --git a/src/data/contacts.data.ts b/src/data/contacts.data.ts index 3743717..017c940 100644 --- a/src/data/contacts.data.ts +++ b/src/data/contacts.data.ts @@ -23,7 +23,7 @@ export const contacts = [ data: [ { title: "contact@turkmenexpo.com", - subtitle: "E-mail Address", + subtitle: "Email", img: "/contacts/home/mail.svg", }, { diff --git a/src/data/home/home-about.data.ts b/src/data/home/home-about.data.ts index cd55a9b..4810bc2 100644 --- a/src/data/home/home-about.data.ts +++ b/src/data/home/home-about.data.ts @@ -32,8 +32,9 @@ export const homeAbout = [ { h2: "TurkmenTextile Expo-2025 in Ashgabat", p: `An international exhibition will unite global industry leaders, innovative manufacturers, and creative designers. - Our mission is to strengthen Turkmenistan's position as a key hub for the textile and fashion industry. The exhibition will serve as a platform to explore sustainable practices, modern technologies, and design solutions, inspiring the development of the industry. + Our mission is to strengthen Turkmenistan's position as a key hub for the textile and fashion industry. `, + p_2: "The exhibition will serve as a platform to explore sustainable practices, modern technologies, and design solutions, inspiring the development of the industry.", data: [ { diff --git a/src/data/stend.data.ts b/src/data/stend.data.ts index b2127c3..2e2646c 100644 --- a/src/data/stend.data.ts +++ b/src/data/stend.data.ts @@ -13,7 +13,7 @@ export const stendData = [ label_4: "Страна", label_5: "Email адрес", label_6: "Номер телефона", - label_7: "Вебсайт", + label_7: "Веб-сайт", visa: "Визовая поддержка:", visa_radio: "Да", @@ -34,7 +34,7 @@ export const stendData = [ label_3: "Job title/Position", number_of_participants: "Number of the participants", label_4: "Country", - label_5: "Email address", + label_5: "Email", label_6: "Phone number", label_7: "Website",