Update src/app/contact-us/page.tsx
This commit is contained in:
@@ -23,7 +23,7 @@ export default function ContactUsPage() {
|
||||
setMessage({ type: "error", text: "Name, Email, and Message are required." });
|
||||
return;
|
||||
}
|
||||
if (!/^[\w-]+(?:\.[\w-]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}$/.test(email)) {
|
||||
if (!/^[[\w-]+(?:\.[\w-]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}$/.test(email)) {
|
||||
setMessage({ type: "error", text: "Please enter a valid email address." });
|
||||
return;
|
||||
}
|
||||
@@ -62,11 +62,11 @@ export default function ContactUsPage() {
|
||||
<NavbarLayoutFloatingInline
|
||||
brandName="Kerala Flavors"
|
||||
navItems={[
|
||||
{ name: "Menu", id: "menu" },
|
||||
{ name: "About", id: "about" },
|
||||
{ name: "Menu", id: "/#menu" },
|
||||
{ name: "About", id: "/#about" },
|
||||
{ name: "Reservations", id: "/reservations" },
|
||||
{ name: "Contact Us", id: "/contact-us" },
|
||||
{ name: "Reviews", id: "testimonials" }
|
||||
{ name: "Reviews", id: "/#testimonials" }
|
||||
]}
|
||||
button={{
|
||||
text: "Book a Table", href: "/reservations"
|
||||
|
||||
Reference in New Issue
Block a user