Falsche Zeitzone bei Buchungen und HTTP status codes als Fehlermeldung behoben

This commit is contained in:
PxlLoewe
2025-10-01 22:23:27 +02:00
parent dc4a3ab4d8
commit ada041bd4a
4 changed files with 64 additions and 44 deletions

View File

@@ -7,6 +7,7 @@ import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { deleteBookingAPI, getBookingsAPI } from "(app)/_querys/bookings";
import { Button } from "@repo/shared-components";
import { formatTimeRange } from "../../helper/timerange";
import toast from "react-hot-toast";
interface BookingTimelineModalProps {
isOpen: boolean;
@@ -75,6 +76,9 @@ export const BookingTimelineModal = ({
await deleteBookingAPI(bookingId);
queryClient.invalidateQueries({ queryKey: ["bookings"] });
},
onSuccess: () => {
toast.success("Buchung erfolgreich gelöscht");
},
});
// Check if user can create bookings