feat: refactor NewDates, clean up legacy code

This reverts commit 0c7836fa59.
This commit is contained in:
Simon Emanuelsson
2025-05-03 19:33:04 +02:00
parent c6a0b4ee30
commit db289b80b1
96 changed files with 1603 additions and 1500 deletions

View File

@@ -1,5 +1,5 @@
"use client"
import { useMemo } from "react"
import { use, useMemo } from "react"
import { useIntl } from "react-intl"
import { Carousel } from "@/components/Carousel"
@@ -78,7 +78,7 @@ function addBreakfastPackage(
}
export function Ancillaries({
ancillaries,
ancillariesPromise,
booking,
packages,
user,
@@ -86,6 +86,7 @@ export function Ancillaries({
refId,
}: AncillariesProps) {
const intl = useIntl()
const ancillaries = use(ancillariesPromise)
/**
* A constructed ancillary for breakfast