diff --git a/src/app/catalog/[id]/components/BookingWidget.tsx b/src/app/catalog/[id]/components/BookingWidget.tsx index a920e38..8c823e4 100644 --- a/src/app/catalog/[id]/components/BookingWidget.tsx +++ b/src/app/catalog/[id]/components/BookingWidget.tsx @@ -1,6 +1,7 @@ "use client"; import { useState } from "react"; +import { useRouter } from "next/navigation"; import { Button } from "@/components/ui/button"; import { DatePicker } from "@/components/ui/date-picker"; import { GuestPicker } from "@/components/form/guest-picker"; @@ -10,6 +11,7 @@ interface BookingWidgetProps { } export function BookingWidget({ price }: BookingWidgetProps) { + const router = useRouter(); const [departureDate] = useState(); const [arrivalDate] = useState(); const [guests, setGuests] = useState({ adults: 1, children: 0 }); @@ -26,6 +28,7 @@ export function BookingWidget({ price }: BookingWidgetProps) { arrivalDate, guests, }); + router.push("/confirm"); }; return ( diff --git a/src/app/catalog/page.tsx b/src/app/catalog/page.tsx index 84667ac..9b386ff 100644 --- a/src/app/catalog/page.tsx +++ b/src/app/catalog/page.tsx @@ -149,7 +149,9 @@ export default function CatalogPage() {

-
Сортировка:
+
+ Сортировка: +
+ setPromocode(e.target.value) + } + className="flex-1 min-w-0 px-4 sm:px-8 py-5 h-[64px] border border-[#DFDFDF] rounded-full text-base text-[#757575] focus:outline-none focus:ring-2 focus:ring-[#008299] focus:border-transparent" + /> + +
+ + + + + {/* Правая колонка - Подтверждение бронирования */} +
+
+
+ {/* Заголовок */} +

+ Проверьте данные +

+

+ Ваше бронирование +

+ + {/* Сведения о бронировании */} +
+ {/* Даты */} +
+
+ Даты +
+
+ 9 августа в 00:00 — 9 августа в + 02:00 +
+
+ + {/* Гости */} +
+
+
+ Гости +
+
+ 1 гость +
+
+
+
+ + {/* Дополнительные услуги */} +
+
+ Нет дополнительных услуг +
+
+ + {/* Правила отмены */} +

+ Правила отмены +

+ +

+ При отмене до 10 мая вы получите частичный + возврат. +

+ + Подробнее + + + {/* Указание времени и кнопка отправки */} +
+
+ + + По местному времени яхты + +
+ +
+
+
+
+ + + + ); +} diff --git a/src/app/layout.tsx b/src/app/layout.tsx index c353fcb..972a708 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -18,7 +18,7 @@ export default function RootLayout({ }>) { return ( - +
{children}