Skip to content

Commit f517daa

Browse files
Update email button to copy address and change telegram to @chainscoutsupport_bot
1 parent a8f57bc commit f517daa

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

src/components/Footer.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useState } from "react";
22
import { useTranslation } from "@/hooks/useTranslation";
3+
import { useToast } from "@/hooks/use-toast";
34
import { Button } from "@/components/ui/button";
45
import {
56
Dialog,
@@ -12,14 +13,21 @@ import { Shield, Send, Mail } from "lucide-react";
1213

1314
const Footer = () => {
1415
const { t } = useTranslation();
16+
const { toast } = useToast();
1517
const [isOpen, setIsOpen] = useState(false);
1618

1719
const handleTelegram = () => {
18-
window.open("https://t.me/chainscoutsecurity", "_blank");
20+
window.open("https://t.me/chainscoutsupport_bot", "_blank");
1921
};
2022

2123
const handleEmail = () => {
22-
window.open("mailto:barmacrpt534@gmail.com", "_blank");
24+
const email = "barmacrpt534@gmail.com";
25+
navigator.clipboard.writeText(email).then(() => {
26+
toast({
27+
title: "Success",
28+
description: t("emailCopied"),
29+
});
30+
});
2331
};
2432

2533
return (

src/lib/translations.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,9 @@ export const translations = {
311311
manualAuditTitle: "Order Manual Audit",
312312
manualAuditDescription: "We can perform a professional pentest of your website or Web3 project. Our specialists will check smart contracts, dApps, APIs, and infrastructure for vulnerabilities.",
313313
contactUs: "Contact us:",
314-
telegramContact: "Telegram: @chainscoutsecurity",
314+
telegramContact: "Telegram: @chainscoutsupport_bot",
315315
emailContact: "Email: barmacrpt534@gmail.com",
316+
emailCopied: "Email copied to clipboard",
316317
},
317318
ru: {
318319
// Header
@@ -625,8 +626,9 @@ export const translations = {
625626
manualAuditTitle: "Заказать ручной аудит",
626627
manualAuditDescription: "Мы можем провести профессиональный пентест вашего веб-сайта или Web3-проекта. Наши специалисты проверят смарт-контракты, dApp, API и инфраструктуру на уязвимости.",
627628
contactUs: "Свяжитесь с нами:",
628-
telegramContact: "Telegram: @chainscoutsecurity",
629+
telegramContact: "Telegram: @chainscoutsupport_bot",
629630
emailContact: "Email: barmacrpt534@gmail.com",
631+
emailCopied: "Email скопирован в буфер обмена",
630632
}
631633
};
632634

0 commit comments

Comments
 (0)