fix: make sure ancillaries also listen to invalidate requests

This commit is contained in:
Simon Emanuelsson
2025-05-14 17:45:05 +02:00
committed by Simon.Emanuelsson
parent 623495a176
commit 0b960200b9
12 changed files with 165 additions and 225 deletions

View File

@@ -11,10 +11,8 @@ import { toast } from "@/components/TempDesignSystem/Toasts"
import useLang from "@/hooks/useLang"
import { trackRemoveAncillary } from "@/utils/tracking/myStay"
import type {
BookingConfirmation,
PackageSchema,
} from "@/types/trpc/routers/booking/confirmation"
import type { Room } from "@/types/stores/my-stay"
import type { PackageSchema } from "@/types/trpc/routers/booking/confirmation"
export default function RemoveButton({
refId,
@@ -26,7 +24,7 @@ export default function RemoveButton({
refId: string
codes: string[]
title?: string
booking: BookingConfirmation["booking"]
booking: Room
ancillary: PackageSchema
}) {
const lang = useLang()