feat(web): streamline contact form and integrate identity fields
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 1m9s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🏗️ Build (push) Failing after 30m21s
Build & Deploy / 🧪 QA (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 4s

This commit is contained in:
2026-04-07 23:08:04 +02:00
parent aeb1814a34
commit 2097b571f3
9 changed files with 318 additions and 156 deletions

View File

@@ -11,8 +11,11 @@ import configPromise from "@payload-config";
export async function sendContactInquiry(data: {
name: string;
email: string;
phone?: string;
role?: string;
companyName: string;
projectType: string;
deadline?: string;
message: string;
isFreeText: boolean;
config?: any;
@@ -25,8 +28,11 @@ export async function sendContactInquiry(data: {
data: {
name: data.name,
email: data.email,
phone: data.phone,
role: data.role,
companyName: data.companyName,
projectType: data.projectType,
deadline: data.deadline,
message: data.message,
isFreeText: data.isFreeText,
config: data.config || null,