Skip to content

Commit a492e51

Browse files
committed
refactor: ENTERPRISE_MAILTO, add default subject param
1 parent 2b462a6 commit a492e51

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/[locale]/enterprise/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// TODO: Confirm
2+
export const ENTERPRISE_MAILTO =
3+
"mailto:[email protected]?subject=Enterprise%20inquiry"

app/[locale]/enterprise/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import { getMetadata } from "@/lib/utils/metadata"
4444

4545
import CasesColumn from "./_components/CasesColumn"
4646
import FeatureCard from "./_components/FeatureCard"
47+
import { ENTERPRISE_MAILTO } from "./constants"
4748
import SwiperHangerLoading from "./SwiperHangerLoading"
4849
import type { Case, EcosystemPlayer, Feature } from "./types"
4950

@@ -221,7 +222,7 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
221222
buttons={[
222223
{
223224
content: t("page-enterprise-hero-cta"),
224-
href: "mailto:[email protected]", // TODO: Confirm
225+
href: ENTERPRISE_MAILTO,
225226
matomo: {
226227
eventCategory: "enterprise hero buttons",
227228
eventAction: "click",
@@ -384,8 +385,7 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
384385
<p className="max-w-prose px-6 text-center md:px-8">
385386
{t("page-enterprise-team-description")}
386387
</p>
387-
{/* // TODO: Confirm email */}
388-
<ButtonLink href="mailto:[email protected]">
388+
<ButtonLink href={ENTERPRISE_MAILTO}>
389389
{t("page-enterprise-hero-cta")}
390390
</ButtonLink>
391391
</section>

0 commit comments

Comments
 (0)