Browse Source

fix(support): point direct marriage support/advisor actions to marriage_specialist@habibapp.com

master
mortezaei 2 weeks ago
parent
commit
4d2e84c8b7
  1. 2
      src/components/Componentes/report-actions-sheet.tsx
  2. 4
      src/components/Componentes/support-access.ts
  3. 4
      src/components/Componentes/support-sheet.tsx

2
src/components/Componentes/report-actions-sheet.tsx

@ -73,7 +73,7 @@ export function ReportActionsSheet({ onClose }: ReportActionsSheetProps) {
// ✅ دکمه مشاور // ✅ دکمه مشاور
const handleOpenConsultant = () => { const handleOpenConsultant = () => {
sendToFlutter("REQUEST_CONSULTANT", { sendToFlutter("REQUEST_CONSULTANT", {
consultant: "habib@gmail.com",
consultant: "marriage_specialist@habibapp.com",
}); });
console.log("👨‍⚕️ REQUEST_CONSULTANT ارسال شد"); console.log("👨‍⚕️ REQUEST_CONSULTANT ارسال شد");
}; };

4
src/components/Componentes/support-access.ts

@ -22,14 +22,14 @@ export function openDirectSupportContact(): void {
app?.postMessage( app?.postMessage(
JSON.stringify({ JSON.stringify({
action: "open_consultant_page", action: "open_consultant_page",
data: { consultant: "habib@gmail.com" },
data: { consultant: "marriage_specialist@habibapp.com" },
}), }),
); );
} catch (err) { } catch (err) {
console.error("Error calling HabibApp bridge", err); console.error("Error calling HabibApp bridge", err);
} }
} else if (typeof window !== "undefined") { } else if (typeof window !== "undefined") {
window.open("mailto:habib@gmail.com", "_blank");
window.open("mailto:marriage_specialist@habibapp.com", "_blank");
} }
} }

4
src/components/Componentes/support-sheet.tsx

@ -90,14 +90,14 @@ export function SupportSheet({ isOpen, onClose }: SupportSheetProps) {
app?.postMessage( app?.postMessage(
JSON.stringify({ JSON.stringify({
action: "open_consultant_page", action: "open_consultant_page",
data: { consultant: "habib@gmail.com" },
data: { consultant: "marriage_specialist@habibapp.com" },
}), }),
); );
} catch (err) { } catch (err) {
console.error("Error calling HabibApp bridge", err); console.error("Error calling HabibApp bridge", err);
} }
} else { } else {
window.open("mailto:habib@gmail.com", "_blank");
window.open("mailto:marriage_specialist@habibapp.com", "_blank");
} }
closeSheet(); closeSheet();
}; };

Loading…
Cancel
Save