Files
web/packages/booking-flow/lib/components/PriceDetailsModal/index.tsx
Matilda Haneling 2c6d9860e1 Merged in feat/book-425-optimize-campaign-rate-card (pull request #3015)
Feat/book 425 optimize campaign rate card

* feat(BOOK-425): design updates to RateCard

* feat(BOOK-425): design updates to campaign BookingCodeChip

* feat(BOOK-425): fixed breakfast message & booking code chips on select rate and enter detailss

* feat(BOOK-425): fixed booking code chip on Booking Confirmation page

* fixed draft comments

* fixed more comments

* feat(BOOK-425): removed fixed height from RateCard banner

* fixed another variable comment

* fixed more pr comments

* fixed more pr comments

* updated ratecard campaign standard rate title color

* removed deconstructed props


Approved-by: Bianca Widstam
Approved-by: Erik Tiekstra
2025-10-29 13:54:29 +00:00

38 lines
973 B
TypeScript

"use client"
import { useIntl } from "react-intl"
import { Button } from "@scandic-hotels/design-system/Button"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import Modal from "@scandic-hotels/design-system/Modal"
import PriceDetailsTable, {
type PriceDetailsTableProps,
} from "./PriceDetailsTable"
function Trigger({ title }: { title: string }) {
return (
<Button
variant="Text"
size="Medium"
typography="Body/Paragraph/mdBold"
wrapping={false}
>
{title}
<MaterialIcon icon="chevron_right" color="CurrentColor" size={20} />
</Button>
)
}
export default function PriceDetailsModal(props: PriceDetailsTableProps) {
const intl = useIntl()
const title = intl.formatMessage({
id: "common.priceDetails",
defaultMessage: "Price details",
})
return (
<Modal title={title} trigger={<Trigger title={title} />}>
<PriceDetailsTable {...props} />
</Modal>
)
}