Falsche Zeitzone bei Buchungen und HTTP status codes als Fehlermeldung behoben
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user