Merged in feat/SW-1468 (pull request #2529)

feat(SW-1468): add restaurant name mapping

* feat(SW-1468): add restaurant name mapping


Approved-by: Bianca Widstam
Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Matilda Landström
2025-07-08 12:20:18 +00:00
parent b35ceafc00
commit 19b58be654
5 changed files with 74 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ import { Divider } from "@scandic-hotels/design-system/Divider"
import { Typography } from "@scandic-hotels/design-system/Typography"
import AlternateOpeningHours from "./AlternateOpeningHours"
import { getGroupedOpeningHours } from "./utils"
import { getGroupedOpeningHours, getTranslatedName } from "./utils"
import styles from "./openingHours.module.css"
@@ -25,11 +25,12 @@ export default function OpeningHours({
}: OpeningHoursProps) {
const intl = useIntl()
const groupedOpeningHours = getGroupedOpeningHours(openingHours, intl)
return (
<div className={styles.wrapper}>
<Typography variant="Title/Overline/sm">
<h5 className={styles.heading}>{heading ?? openingHours.name}</h5>
<h5 className={styles.heading}>
{heading ?? getTranslatedName(openingHours.nameEnglish, intl)}
</h5>
</Typography>
<Divider />