diff --git a/src/components/sponsors/SponsorModal.tsx b/src/components/sponsors/SponsorModal.tsx index adbbcab..757e784 100644 --- a/src/components/sponsors/SponsorModal.tsx +++ b/src/components/sponsors/SponsorModal.tsx @@ -2,35 +2,19 @@ import { useState } from "react" +const calendlyLink = process.env.NEXT_PUBLIC_CALENDLY_LINK + export default function SponsorModal() { const [open, setOpen] = useState(false) - const handleSubmit = (e: any) => { - e.preventDefault() - - const form = e.target - - const company = form.company.value - const contact = form.contact.value - const role = form.role.value - const time = form.time.value - - const subject = "Sponsorship Inquiry - AUS Racing" - const body = ` -Company Name: ${company} -Contact Name: ${contact} -Role: ${role} -Preferred Meeting Time: ${time} -` - - window.location.href = `mailto:ausracing@aus.edu?subject=${encodeURIComponent( - subject - )}&body=${encodeURIComponent(body)}` + if (!calendlyLink) { + return null } return ( <> {open && ( -
+ Scheduling Service +
+ ++ Choose a time to speak with the team about sponsorship + opportunities and partnership options. +