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:
@@ -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 />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user