fix(SW-1241): Adjusted amenities sidepeek on hotel pages and booking flow
Approved-by: Michael Zetterberg Approved-by: Matilda Landström
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
"use client"
|
||||
|
||||
import { getIntl } from "@/i18n"
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
|
||||
import Divider from "../TempDesignSystem/Divider"
|
||||
import AlternateOpeningHours from "./AlternateOpeningHours"
|
||||
@@ -8,14 +10,20 @@ import { getGroupedOpeningHours } from "./utils"
|
||||
|
||||
import styles from "./openingHours.module.css"
|
||||
|
||||
import type { OpeningHoursProps } from "@/types/components/hotelPage/sidepeek/openingHours"
|
||||
import type { RestaurantOpeningHours } from "@/types/hotel"
|
||||
|
||||
export default async function OpeningHours({
|
||||
interface OpeningHoursProps {
|
||||
openingHours: RestaurantOpeningHours
|
||||
alternateOpeningHours?: RestaurantOpeningHours
|
||||
heading?: string
|
||||
}
|
||||
|
||||
export default function OpeningHours({
|
||||
openingHours,
|
||||
alternateOpeningHours,
|
||||
heading,
|
||||
}: OpeningHoursProps) {
|
||||
const intl = await getIntl()
|
||||
const intl = useIntl()
|
||||
const groupedOpeningHours = getGroupedOpeningHours(openingHours, intl)
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user