added support field
This commit is contained in:
parent
116bb78d02
commit
c3e1dea774
|
|
@ -12,6 +12,7 @@ import { useTranslation } from "react-i18next";
|
||||||
import { Navigation } from "@/locales/types/nav.type";
|
import { Navigation } from "@/locales/types/nav.type";
|
||||||
import { Menu } from "../shared";
|
import { Menu } from "../shared";
|
||||||
import { useUiStore } from "@/store/ui";
|
import { useUiStore } from "@/store/ui";
|
||||||
|
import { Language, useLangStore } from "@/store/lang";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
className?: string;
|
className?: string;
|
||||||
|
|
@ -19,6 +20,7 @@ interface Props {
|
||||||
|
|
||||||
export const Burger: FC<Props> = () => {
|
export const Burger: FC<Props> = () => {
|
||||||
const { t } = useTranslation("nav");
|
const { t } = useTranslation("nav");
|
||||||
|
const lang = useLangStore((state) => state.lang);
|
||||||
|
|
||||||
const sheet = useUiStore((state) => state.sheet);
|
const sheet = useUiStore((state) => state.sheet);
|
||||||
const setSheet = useUiStore((state) => state.setSheet);
|
const setSheet = useUiStore((state) => state.setSheet);
|
||||||
|
|
@ -39,19 +41,29 @@ export const Burger: FC<Props> = () => {
|
||||||
<SheetClose />
|
<SheetClose />
|
||||||
|
|
||||||
<SheetHeader className="mt-16 flex flex-col gap-2">
|
<SheetHeader className="mt-16 flex flex-col gap-2">
|
||||||
<Link to="">
|
<Link
|
||||||
|
to={
|
||||||
|
lang === Language.RU
|
||||||
|
? "https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf"
|
||||||
|
: "https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf"
|
||||||
|
}
|
||||||
|
>
|
||||||
<Button
|
<Button
|
||||||
variant={"secondary"}
|
variant={"secondary"}
|
||||||
size={"sm"}
|
size={"sm"}
|
||||||
className="bg-teritary w-full text-on_teritary hover:bg-teritary/90"
|
className="bg-teritary w-full text-on_teritary hover:bg-teritary/90"
|
||||||
>
|
>
|
||||||
Официальная поддержка
|
{lang === "ru" ? "Официальная поддержка" : "Official Support"}
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link to="/B2B-B2G" onClick={() => setSheet(false)}>
|
<Link to="/become-sponsor">
|
||||||
<Button className="text-base w-full" size={"sm"}>
|
<Button
|
||||||
B2B | B2G встречи
|
variant={"secondary"}
|
||||||
|
size={"sm"}
|
||||||
|
className="bg-primary w-full text-white hover:bg-primary/90"
|
||||||
|
>
|
||||||
|
{lang === "ru" ? "Стать спонсором" : "Become a sponsor"}
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
</SheetHeader>
|
</SheetHeader>
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,15 @@
|
||||||
"link": "/contacts"
|
"link": "/contacts"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"support": {
|
||||||
|
"text": "Official Support",
|
||||||
|
"link": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf"
|
||||||
|
},
|
||||||
|
|
||||||
"news": {
|
"news": {
|
||||||
"trigger": "News",
|
"trigger": "News",
|
||||||
|
|
||||||
"item": "Subscribe to the news"
|
"item": ["Subscribe to the news"]
|
||||||
},
|
},
|
||||||
|
|
||||||
"": "",
|
"": "",
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,11 @@
|
||||||
"link": "/contacts"
|
"link": "/contacts"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"support": {
|
||||||
|
"text": "Официальная поддержка",
|
||||||
|
"link": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf"
|
||||||
|
},
|
||||||
|
|
||||||
"news": {
|
"news": {
|
||||||
"title": "Новости",
|
"title": "Новости",
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue