Add submit button click handler in Book Now page to manage login dialog display #17
@ -88,6 +88,7 @@ export default function BookNowPage() {
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
const [showLoginDialog, setShowLoginDialog] = useState(false);
|
||||
|
||||
// Handle submit button click
|
||||
const handleSubmit = async (e: React.FormEvent) => {
|
||||
e.preventDefault();
|
||||
// Open login dialog instead of submitting directly
|
||||
|
||||
Loading…
Reference in New Issue
Block a user