diff --git a/src/app/page.tsx b/src/app/page.tsx index bc3462d..4587785 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -16,10 +16,11 @@ export default function LandingPage() { const [isReserving, setIsReserving] = useState(false); const [email, setEmail] = useState(""); const [mobile, setMobile] = useState(""); + const [name, setName] = useState(""); const [guests, setGuests] = useState("2"); const handleReserve = () => { - const message = encodeURIComponent(`Hello, I would like to book a table at Shaffa. \nEmail: ${email}\nMobile: ${mobile}\nGuests: ${guests}`); + const message = encodeURIComponent(`Hello, I would like to book a table at Shaffa. \nName: ${name}\nEmail: ${email}\nMobile: ${mobile}\nGuests: ${guests}`); window.open(`https://wa.me/919876543210?text=${message}`, '_blank'); setIsReserving(false); }; @@ -47,7 +48,7 @@ export default function LandingPage() { { name: "Contact", id: "contact" }, ]} button={{ - text: "Reserve", onClick: () => setIsReserving(true) + text: "Book a table", onClick: () => setIsReserving(true) }} brandName="Shaffa" /> @@ -59,7 +60,7 @@ export default function LandingPage() { description="Authentic flavors of North India, crafted for families and couples in the heart of Sec 26B, Chandigarh." buttons={[ { - text: "Reserve on WhatsApp", onClick: () => setIsReserving(true), + text: "Book a table", onClick: () => setIsReserving(true), }, ]} imageSrc="http://img.b2bpic.net/free-photo/vegetable-salad-with-herbs-cheese_140725-44342.jpg?_wi=1" @@ -70,7 +71,13 @@ export default function LandingPage() { {isReserving && (