mirror of
http://88.130.71.182:3000/BlitTech/badoHair_fe.git
synced 2026-06-13 11:03:02 +00:00
Fix product stock, booking actions, settings, reservation UX, nav and category filter
This commit is contained in:
@@ -81,6 +81,15 @@ export default function Booking() {
|
||||
}
|
||||
};
|
||||
|
||||
const resetBooking = () => {
|
||||
setConfirmed(false);
|
||||
setSelectedService(null);
|
||||
setSelectedDate(undefined);
|
||||
setSelectedSlot(null);
|
||||
setSlots([]);
|
||||
setPhone(user?.phone ?? "");
|
||||
};
|
||||
|
||||
if (confirmed) {
|
||||
return (
|
||||
<div className="min-h-screen flex items-center justify-center py-12 px-4">
|
||||
@@ -92,9 +101,12 @@ export default function Booking() {
|
||||
<p className="text-muted-foreground mb-2">
|
||||
{selectedService?.name} — {selectedDate?.toLocaleDateString(locale)} {t("booking.confirmed_at")} {selectedSlot?.start_time.slice(0, 5)}
|
||||
</p>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
<p className="text-sm text-muted-foreground mb-6">
|
||||
{t("booking.confirmed_desc")}
|
||||
</p>
|
||||
<Button variant="outline" onClick={resetBooking}>
|
||||
{t("booking.new_booking")}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user